Add a method to return the node of the given document

A public method "getNodeForDocument" that takes one argument, the document, and returns its node.

Related to this comment: https://github.com/doctrine/DoctrinePHPCRBundle/issues/2#issuecomment-11979864