invenio.ext.login
invenio.ext.sslify
factory improvements