Improve login page worklow. This patch improves the display and UX when a user provides their second factor during the login process. It includes refactoring the display to use a template fed by renderer.
General refactoring and cleanup of MFA code, to allow for easier addition of UX improvements.