Optimize keyserver statistic queries, fix #1

Adding indexes to openpgp_pubkey.ctime and mtime, and moving the ranged
query to the innermost subqueries reduces the number of rows to make the
hourly and daily statistic queries fast enough to run on-demand.

We'll cache the pages if they get hammered (in general).