Add new login method. Via JSON API :). Needs to be documented.