Refactoring to allow for using other transport protocols.
Allow for more flexibility in choice of login page template.
Was not too happy about how authn context picking worked. This I think is better.
PEP-8 compliance
Refactored
Refactored and allow acr value to be passed up.
Replaced M2Crypto with PyCrypto