Sunrun has snapped up three divisions of Mainstream Energy Corporation, in a move set to "shake up the solar market" in the US.