Set cache time based on actual API limits

This makes the limits explicit, and sets a conservative cache time (50% less
than the theoretical maximum) based on them.
Merge pull request #4 from jasontbradshaw/faster-polling

Set cache time based on actual API limits