[WIP] Add extra data to DocumentToArray return format for jstree 3 compatibility

Perhaps this doesnt belong here although the OdmTree method being modified is already returning data that is somewhat specific to the jstree plugin. This adds a few extra keys that would be necessary to allow it to serve the right data format for jstree 3
would this be related to #230? i prefer the css classes over an icon that is loaded as image, if we can make jstree do that. but for the pure update, did the icon field become mandatory?