[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
i think that we should just make it more clear that this method is specific to the js side. its only for js consumption. rather than adding another layer of abstraction, i would just extend the tree for other js libraries. 

if we want to work towards cleaning this up, we could start providing a class extending this class for jstree, and deprecate the method here so we can move it later to the extending class.