Moved document setup methods to core module.
Addition of getDocument method alias for getOwnerDocument.