Bug 862461 - Add in Mongo connection error handling.
Add middleware checking if Mongo Connection is active.
Restructure when connection was made for easier passing around of object
Rebase fix for Mongo middleware
Re add middleware
Moved index back to views
Merge pull request #9 from mjschranz/b862461

Bug 862461 - Add in Mongo connection error handling.
Bug #864334 - Add .travis.yml
Bug #864334 - CSSLint and JSHint fixes
Bug #864334 - Review fixes