mod. Use settings to optionally include flask.ext.login module for session management.