When mongodb is unavailable, serve a proper auto-reloading code-503 page

Not easy to test all cases as getting an unavailable Mongo server is difficult, I ended up tweaking the code to "behave" the way I wanted (I can provide a patch file if you think that's the best way to test).