basics for user management.
more secure type for server responses.
refactored rest api code
cleaning up code