Fix in Model##update where state was not persisted when CREATING.
Added a string trim function.
Updated dist/gnd.js and added a minimised version.