watch -> watcher
Factor out creation of watch table entry.
Comments.
Fix double free.
Use rename to move output from sandbox to cache directory.
Don't sleep for 5 seconds after ctrl-c.
Payload already contains the cache directory.
Fixed recursive linking by factoring it out into an independent function.
Cleaned up setup_sandbox.
Fix compile errors in tests for cygwin.