Added status return constants and logic to all methods.
Added register user duplicate check
Formatted the source code. Push to travis CI.
Changed send message test