Refs #103 - Add interface and trait for making classes aware of debug mode.
Refs #103 - Log errors and return response.
Refs #103 - Check for existence of logger before trying to log.
Refs #103 - Extract method.
Refs #103 - Add tests.
Ref #103 - Use multiple catch statements.
Refs #103 - Log one error instead of two.
Merge pull request #103 from synapsestudios/feature/103-return-error-response

AbstractRestController should catch exceptions and return a 500 response if caught