Support build and test on Windows

I was investigating a problem with mocha-phantomjs running on Windows with paths containing spaces and found that the build and test system didn't work on Windows.  

The build fails for a number of reasons related to how it spawns node, mocha and coffee.  Then some of the tests fail, largely due to spawn call differences and matching on \n chars when they are \r\n on Windows.

This PR that resolves these issues.  I've left each change as a separate commit so you can see the motivation behind each change.  I've tested it on Windows 7 & and Debian Squeeze.
Comments etc, very welcome.

Note the build on Windows requires node.exe, phantomjs.exe and mocha-phantomjs\node_modules\.bin all to be on the path.
Note the iframe tests fail on Windows with PhantomJS prior to 1.8.2 because of a crash fixed in 1.8.2 (i.e. they pass with 1.8.2).