Add Activeresource 4.0.0 compatibility

Work in progress. Merging this will break shopify_api for a lot of people!