Add Windows support using `netsh`

Added netsh.js to provide Windows support using the `netsh` command. Also some other code cleanup.