cleanup Makefile
avoid wasting work when the function exits anyway
add console functionality and remote console acccess though masala-ctl usign a local socket
code cleanup