added Decks and refactored

- configuration now occurs in index.html
- concept of Deck added, which is a collection of templates, decks can
be viewed in the DeckPage
- the current deck can be selected from a list
- added the concept of a global env, which can be used to set "global"
properties. this is being used rather than forwarding changes through to
every subsystem that may need them.