Add redis session support

Implementation taken from here - http://flask.pocoo.org/snippets/75/
I needed to change this to get sign-on-tron login working correctly