Pass through the error correctly.
Rewrite tests to test the end result using jsdom.

This is less fragile in the face of changes to browserify's wrapping format, and makes the tests easier to maintain generally.
Put the temp file in the temp directory.

Fixes domenic/grunt-global-wrap#1.
Version 1.0.0