Adds registerUser(), getUserBy*, userExists() and changes to createUser()