Get the global stats periodically

Global stats, user count and weekly dollar exchange, were being gathered on every single request, even requests for static assets. This commit changes the action to only look in the database during homepage cache updates and carry the data in memory so it is available to the application.