Added the beginnings of a wrapper for the login API