UserRepository: Added the `createUser` function. Simplifies signup service. Improved tests.