move cli commands to interactive.js
update app with interactive
node: close socket upon ack