add support for wrapping exceptions
Merge pull request #68 from wcdolphin/feat/error-handling

Adds support for injecting CORS headers even in the case of internal server errors.