As the cost of lithium battery packs continues to decline, technologies like the Tesla Model 3, Nissan Leaf and Tesla Powerwall are setting up the power storage unit for major growth in the coming years. So just how does it work?