beam/examples/beamsh: new 'connect' command
beam/examples/beamsh: utility function 'fileToConn'