Heila Technologies, the five-year-old Somerville startup that develops hardware and software to integrate renewables and batteries on a microgrid, has pulled in a $2.5 million seed round to build out its technology platform.