More inventory dev, template helper improvements

Inventory click functionality working (stored < > free) within a single
browser (no inventory updates cross-browser yet).  Some template
helpers now take parameters, reducing the number of helpers needed.