EXPERIMENTAL: Pull DOMDocument functions out into classes, standardize the way the shortcodes that use DOMDocument are written.