BeagleBone: first pass debug

* Added 'touch' to automatically restart on error
* Added socket.write handler for socket.io
* Split socketioOpen from socketOpen