Made logins happen. Logging out doesn't work, though. API now has a 'resource' method to DRY it up.