Login v2 API

Introducing the v2 Login API, backed by the original Admin.Login logic. Builds on proposed pull request #367.
I realize this is existing code, but while you're here, please handle the error returned by RegisterNamed or add a justification as a comment not to.