Add methods to DomHelper

*Ready to deploy.* This adds a bunch of methods to DomHelper and uses them where applicable. Some of them are currently unused but used by internal Typekit code. Previously we had two near identical copies of DomHelper, one in the webfontloader the other internal. This pull request merges them.