Add StatsD timings for MongoDB queries

So that we can better diagnose the occasional slow requests we produce, add some StatsD timings around our database query durations for the app's controller.
Reordering this will change the behaviour.  Previously it wouldn't set expiry headers for requests that 404.  I think that's what we want.