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.
Code cleanup for global stats cache
Merge pull request #1626 from gittip/cache-stats

Get the global stats periodically