As a developer I would like to manipulate values of fields property in the contentCreateStruct structure

Implemented getter and setter methods for the fields property of contenCreateStruct structure.
By making these changes I'm able to create a new content and update its fields using JS Rest Client.
https://jira.ez.no/browse/EZP-23276
fields.length could be moved out of the for def, IIRC to avoid executing it on each iteration