Insert a failure stat if a page is retried more than maxTries.

* This patch has commented out queries that slow down the server.
  This is the version that is currently serving rt-tests.

* dbGetTitle and dbGetTitleRandom queries fetch a page if
  num_tries <= maxTries rather than num_tries < maxTries.
  On that last try, the server inserts a failure stat entry
  so that these pages show up on the top in the topfails/* pages.

* Also reduced retry time to 10 minutes instead of an hour.
  10 minutes should be long enough for a client to return a
  result for the page it has claimed.

Change-Id: I1905739a4359942a0c0270ecc351fa5fc6e99219
Merge "Insert a failure stat if a page is retried more than maxTries."