Added monitoring of api rate limits and waiting for replenishment.
Merge pull request #390 from nirg/monitor_rate_limit

Added monitoring of api rate limits and waiting for replenishment.