Flask-Login integration. closes #4