using spawn() instead of fork()

by using a detached process a quick parent doesn't kill a slow child
Merge pull request #38 from Bartvds/rewrite

using spawn() instead of fork() (for rewrite branch)