added basic (user management) functionality

cryptography, user management, generating auth token