Add auth token utility methods

This pull request contains the following changes:

- add error handler middleware
- add sendResponse method which generates a JWT token using User object and sends a response
- add checkAuthToken method which is used to extract JWT token from the header and decodes it to User object.  This utility should be used within the auth module's auth logic.

@krulwich, @suprbh, @ceg1236 - please review.