Fix using the wrong username property key.
Restructure supertest-as-promised structure to look more similar to standard supertest style.
Fix formatting.
Fix wrong error return format.
Add test for validation of duplicate usernames.
Rename validation errors.