[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
so we move id out of the 'attr' array, and 'rel' becomes 'type'? yeah, that part is jstree specific anyways. as is the whole PhpcrOdmTree, so that is fine. can you maybe add comments to the duplicated lines that they are jstree 1 / jstree 3?