Fixed EmbeddedObject's getParent method and added getParentDocument.
Also added lineage support for it to Factory
Fixed some more lineage problems and added .getParent() to some more
classes