HTML5: Clean up app.coffee as much as possible

Move methods to new classes RedisBridge and Utils.
Also made several other small fixes (typos mostly).