SolarCity is acquiring Zep Solar and its rackless mounting design in a $158 million stock deal, illustrating the growing importance of improving costs and complexity in residential solar.