Moving Resources class into its own file
More cleanup between index.js and lib/resource.js
Fix tests
Additional cleanup
Support for gzip