Cleaned up http handler function and added support for get user and partial support for post user