Fix up the templates, redis and looks

The app now works as expected, with server-side templating. This marks
the initial refactor as complete. Everything from now on is an
improvement. I'll stop and try to deploy this later.