Implemented create a user.

Still needs more tests.