About to refactor id into goals json to make update easier
Changed the way goals are sent and received, sent as a full document with all children as part of an array of this document