Added decent API docs, renamed login to authenticate.