Rewrite

Almost complete rewrite of the app using sockjs and redis. Not quite production ready but mostly functional.

Mostly fixes #1