Support rate limiting

Re: API-67
:thumbsup: nice test!