A new startup is showing how to make batteries cheaper—and safer