A solar farm connected to a huge battery will be built on the Hawaiian island of Kauai to use solar in the evenings to meet peak demand, under a 20-year contract between SolarCity and an electric utility co-operative.