Rewrote tests in nodeunit

Added cygwin support, fixes #8
Added PID passback from child process, fixes #20
Fixed InjectJS error value