extracts parsing logic to another method for better error handling
refactor parse method to return body and memoize body
Merge pull request #3 from Shopify/extract_parse

Extract parsing logic to another method for better error handling