Fix Mako always returning session as None.
Remove TEMPLATE_DEFAULTS on config.py.
Remove use of app.defaults() on server.py (should not rely on file but on DB).