Database user API.

DatabaseUser provides integration with the Users collection from the database (sign up, log in, log out, update, retrieve and delete users).

Method summary

DatabaseUser has the following methods:

login(dbId, userName, password[, masterKey])Logs in to the database and gets a session token for next actions.
logout(dbId, token)Logs out from the database and destroys current session token.
signUp(dbId, userJSON)Signs up user to the database.
update(dbId, objectId, userJSON[,token])Updates info about the user in the database.
retrieve(dbId, objectId, include[,token])Retrieves info about the user in the database.
remove(dbId, objectId[, token])Deletes the user from the database.
query(dbId, params[, token])Queries users from the database.