Big cleanup and rewrite to use CQRS for Login.