Refactored post /register into post /user/new. Added put /user/:id.