Fix chat menu being hidden under header
Introduce some array and string helper functions

Introduce some convenience functions for common code patterns.
Merge pull request #114 from hugomg/foreach

Introduce some array and string helper functions
Merge pull request #112 from hugomg/zindex

Fix chat menu being hidden under UI bar
Get rid of ender-aware code
Remove obsolete filters

These filters only apply to the TPP stream but are already handled
by the TPP streamer.

Fixes #113
Separate UI from presentation

The main objective of this patch is to let each feature
be coded separately from each other, without needing to
put too much stuff inside the same functions.

The biggest changes are
  - Changed how new settings are defined
  - Moved some code around. Instead of having all constants in one place
    then all filtering functions, then the setting names in another,
    now all the code for each feature is in one place.
  - New "publish-subscribe" system for settings removes the need to call
    "update filters" all over the place.
  - All side effects are executed inside the "main" function.
Get rid of JSHint warnings
Merge pull request #115 from hugomg/refactor

Separate UI from presentation