Login v2 API

Introducing the v2 Login API, backed by the original Admin.Login logic. Builds on proposed pull request #367.
Refactored them to share a common base, which is really V1-centric. V0 login is provided for backwards-compatibility and can be removed when its no longer needed.