Added 'Register' functionality. A new user is created and his/her corresponding private and public keys are generated and stored in the database