added new helper functions
refactored http handler
added async to create new user