Implemented rate limiting.

Untested. Supports rate limiting the number of requests in ten seconds
and 1 hour intervals.