User creation (with pwd encrypting) + unit tests.
Separated API logic from web view (separate files)