Removed session in favour of flask.g thread local variable.