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.