Millions of tons of food are wasted every year — sent to landfills and incinerators. A Massachusetts company wants to stop that — and power our homes on those scraps.