Added another case to the login method, where a mostRecent key holds a default username to login as, if not enough arguments are given.
Changed logout to only perform a local logout.
Added invalidateAPIKey method.