Refactor callback hell

- service methods should be local functions
- most of the UAA request error status code 400 or 401 and we should not eliminate 401 status codes, we can simply return with the UAA error response status code instead
maybe service methods could be separated in different files or endpoints could be separated in different files or both :)