Origin Energy has secured a deal to be the first supplier of the Tesla Powerwall battery storage system in Australia.