Changed genmosh app. Listen on tcp port. Use pid module. Handle signals.

Signed-off-by: Daniel (dmilith) Dettlaff <dmilith@verknowsys.com>
Added valid pty.js dependency.

Signed-off-by: Daniel (dmilith) Dettlaff <dmilith@verknowsys.com>