API rate limiter
Merge pull request #20 from andyhassall/master

API rate limiter