Feature/rate limiting rebase

Looking at the requests list for CCC reminded me of the rate limiter.

This is only a basic DB rate limiter - this limits retests by URL rather than by domain, which would also be desirable at some point in the future.
Fixed the race condition in the earlier version.
Tested against vagrant VM.

Anybody care to review?