Provide ring middleware

Implement ring middleware for reporting exceptions.

Modify the travis-ci build to run linters as well.