add stdin commands

commands: linkdown, linkup, close, showrt.
showrt callable is unimplemented.

next: node communication aka sending distance vectors