Refactor core/dom APIs.

- Breakout core/dom/add, core/dom/get, core/dom/query and
  core/dom/decorate