Code re-org, inventory fix

Added new files to separate the functions from the template code.
Moved both reactive functions to startup.js.

Added code to detect when an inventory entity is full, so that token
will not move in that case (when clicked).

Added the beginning of some object code; plan to implement objects for
episodes, screens and exchanges.