BeagleBone: add socket.io listener

BeagleBone: first pass debug

* Add socket.io listener
* Added socket.write handler for socket.io
* Split socketioOpen from socketOpen
* Added 'touch' to automatically restart on error
* Fixed a stray curly brace that was in original code