Fixing broken wiring helpers.

As noted in #174, the arguments are reversed for `wiring.appendToFile` and `wiring.prependToFile`.
Adding tests for wiring.append, appendToFile, prepend, prependToFile, domUpdate
Merge pull request #373 from timrwood/patch-1

Fixing broken wiring helpers.