Change the endpoints to be a hash, so the different endpoints can be referred top easily using a key.
Merge pull request #9 from Shopify/endpoints_as_hash

Change the endpoints to be a hash