API limits code

* Contributed by Chris Scott, https://github.com/christocracy/shopify-api-limits