Added a basic DOM manipulation module (work in progress - more functionality to be added)

(integrated from trunk branch change 23d2369 by Nathan Rijksen <n.rijksen@gmail.com>)