Cleanup auth
Added util for sending status code with its mapped status text
Fixed issue where 401 was returned rather than 500 on db error
Use constants for status codes