Implement rate-limiting

http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api#rate-limiting
There was a comment about that 2 lines above

> // If the limit is infinite then skip everything.

Anyways, it won't hurt.