move functions into Utils
removing unused code
add gzipping to json creation
Merge branch 'master' into js-refactor-ingest
Merge pull request #302 from nla/js-refactor-ingest

Js refactor ingest