Revert "simplify vagrant box"

Turns out it's convenient having Go and Git around.

This reverts commit 989da03d9b659b03940ce2d3facc2b544608bc3e.
build wsh and wshd in Makefile
wait for stdout/stderr/stdin to be done

also fix arg parsing
remove unused constants
cleanups
fix daemon retaining fds of forked process
fix leaking fds for exit status