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
Filter empty-looking msgs when hiding emoticons

Fixes #99
Refactor slowmode helper

- Slowmode state is in a single place now isntead of spread over multiple
  setIntervals
- Does not stop user from posting - only changes the chat info.
- Can be turned off via a setting
Move TPP settings to Twich's settings menu

This avoids having to create new menu buttons and resizing the chat button

Fixes #110
Fix "custom banlist" toggle with old messages

Currently, old messages get refiltered when we add or remove a word
to the banlist but they do not get refiltered if we toggle the banlist
on and off (future messages are filtered correctly though)
Merge pull request #116 from hugomg/emoticons

Filter empty-looking msgs when hiding emoticons
Merge pull request #118 from hugomg/settings-menu

Move TPP settings to Twich's settings menu
Merge pull request #117 from hugomg/slowmode

Refactor slowmode helper
Merge pull request #119 from hugomg/banned-bugfix

Fix "custom banlist" toggle not refiltering old messages
Bump version number to 2.4
Fixed Issue #122 - replaced unsafeWindow references with myWindow
Merge pull request #123 from AndLen/master

Fixed Issue #122 - replaced unsafeWindow references with myWindow
Updated tpp-chat-filter-preview.png
Add a scrollbar to the settings menu

Fixes #124
Merge pull request #132 from hugomg/settings-scrollbar

Add a scrollbar to the settings menu
Fix scrollbar being hidden if you never resize

In the main chat window (as opposed to the popout chat) the chat-room
would return a height of zero and this would result in us effectively
hiding the settings menu. Oops!