beam/examples/beamsh: more bells and whistles for demos
beam/examples/beamsh: more bells and whistles for demos

* Automatically switch to interactive mode when stdin is a terminal

* Basic implementation of "responses"

Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)

shin-/docker.github.io,docker-zh/docker.github.io,kyhavlov/swarm,BSWANG/denverdino.github.io,shot/swarm,denverdino/docker.github.io,menglingwei/denverdino.github.io,vieux/swarm,thaJeztah/docker.github.io,londoncalling/docker.github.io,BSWANG/denverdino.github.io,shin-/docker.github.io,rchicoli/swarm,JimGalasyn/docker.github.io,JimGalasyn/docker.github.io,LuisBosquez/docker.github.io,joeuo/docker.github.io,abronan/swarm,kyhavlov/swarm,jimmyxian/swarm,xFragger/swarm,aduermael/docker.github.io,zkcrescent/swarm,gonkulator/swarm,qianzhangxa/swarm,moxiegirl/swarm,jzwlqx/denverdino.github.io,sanscontext/docker.github.io,christophelec/swarm,moxiegirl/swarm,akerbis/armhf-swarm,denverdino/denverdino.github.io,denverdino/docker.github.io,beni55/swarm-1,fugr/swarm,joaofnfernandes/docker.github.io,atlassian/swarm,phiroict/docker,cpuguy83/swarm,thaJeztah/docker.github.io,bpradipt/swarm,resouer/swarm,zkcrescent/swarm,phiroict/docker,anweiss/docker.github.io,tangkun75/swarm,gradywang/swarm,CiaranCostello/swarm,EderRoger/swarm,pdevine/swarm,LukasBacigal/swarm,JimGalasyn/docker.github.io,jeffjen/swarm,anweiss/docker.github.io,jzwlqx/denverdino.github.io,tranceitionalMynd/swarm,sanscontext/docker.github.io,CiaranCostello/swarm,Aorjoa/swarm,johnstep/docker.github.io,phiroict/docker,alexisbellido/docker.github.io,jzwlqx/denverdino.github.io,thaJeztah/docker.github.io,troy0820/docker.github.io,errordeveloper/swarm,MHBauer/swarm,rillig/docker.github.io,docker/docker.github.io,barais/swarm,joaofnfernandes/docker.github.io,raoofm/swarm,affo/swarm,gdevillele/docker.github.io,johnstep/docker.github.io,phiroict/docker,SivagnanamCiena/swarm,dims/swarm,everett-toews/swarm,shin-/docker.github.io,docker/docker.github.io,joeuo/docker.github.io,francisbouvier/swarm,SivagnanamCiena/swarm,jimenez/swarm,tangkun75/swarm,docker-zh/docker.github.io,srikalyan/swarm,schmunk42/swarm,joeuo/docker.github.io,aduermael/docker.github.io,NunoEdgarGub1/swarm,liubin/swarm,polyverse-security/swarm,londoncalling/docker.github.io,anweiss/docker.github.io,morpheyesh/swarm,mgoelzer/swarm,CodeNow/swarm,FreedomWangLi/swarm,denverdino/docker.github.io,ch3lo/swarm,vlajos/swarm,bsmr-docker/swarm,yp-engineering/swarm,joaofnfernandes/docker.github.io,marsmensch/swarm,johnstep/docker.github.io,sanscontext/docker.github.io,rillig/docker.github.io,doronp/swarm,gonkulator/swarm,sfsmithcha/swarm,allencloud/swarm,londoncalling/docker.github.io,thaJeztah/docker.github.io,mrjana/swarm,JimGalasyn/docker.github.io,mountkin/swarm,tnachen/swarm,bdwill/docker.github.io,bdwill/docker.github.io,alexisbellido/docker.github.io,affo/swarm,Spritekin/swarm,joeuo/docker.github.io,fugr/swarm,iaintshine/swarm,shahankhatch/swarm,FollowMyDev/swarm,snrism/swarm,liubin/swarm,jimmycmh/swarm,denverdino/swarm,bdwill/docker.github.io,londoncalling/docker.github.io,joeuo/docker.github.io,unodba/swarm,deis/swarm,BSWANG/swarm,swarm-hooks/swarm,marsmensch/swarm,danix800/docker.github.io,chanwit/swarm,shin-/docker.github.io,ezrasilvera/swarm,gdevillele/docker.github.io,ricca742/swarm,bfirsh/swarm,ealang/swarm,alexisbellido/docker.github.io,danix800/docker.github.io,vlajos/swarm,rav121/swarm,krystism/swarm,barais/swarm,jay-lau/swarm,jdamick/swarm,aidora/pisces,akerbis/armhf-swarm,mountkin/swarm,danix800/docker.github.io,everett-toews/swarm,riuvshin/swarm,troy0820/docker.github.io,christophelec/swarm,bsmr-docker/swarm,LuisBosquez/docker.github.io,jeffjen/swarm,mrjana/swarm,parapsyche/swarm,pssahi/swarm,sanscontext/docker.github.io,BSWANG/denverdino.github.io,alexisbellido/docker.github.io,MHBauer/swarm,errordeveloper/swarm,aidora/pisces,cpuguy83/swarm,BSWANG/swarm,rchicoli/swarm,LuisBosquez/docker.github.io,shakamunyi/swarm,denverdino/denverdino.github.io,johnstep/docker.github.io,riuvshin/swarm,denverdino/swarm-1,ch3lo/swarm,EderRoger/swarm,JimGalasyn/docker.github.io,jimmycmh/swarm,deis/swarm,shubheksha/docker.github.io,bdwill/docker.github.io,FreedomWangLi/swarm,docker-zh/docker.github.io,shubheksha/docker.github.io,schmunk42/swarm,menglingwei/denverdino.github.io,allencloud/swarm,abronan/swarm,xFragger/swarm,thaJeztah/docker.github.io,denverdino/denverdino.github.io,mavenugo/swarm,troy0820/docker.github.io,docker-zh/docker.github.io,ezrasilvera/SwarmACLs,adouang/swarm,aluzzardi/swarm,megamsys/swarm,dnephin/swarm,shahankhatch/swarm,anweiss/docker.github.io,shakamunyi/swarm,denverdino/denverdino.github.io,menglingwei/denverdino.github.io,echupriyanov/swarm,joaofnfernandes/docker.github.io,tranceitionalMynd/swarm,cgvarela/swarm,kunalkushwaha/swarm,phiroict/docker,jdamick/swarm,aduermael/docker.github.io,shot/swarm,gdevillele/docker.github.io,LuisBosquez/docker.github.io,mgoelzer/swarm,alexisbellido/docker.github.io,londoncalling/docker.github.io,docker/docker.github.io,linecheng/swarm,ezrasilvera/SwarmACLs,swarm-hooks/swarm,LukasBacigal/swarm,denverdino/docker.github.io,denverdino/denverdino.github.io,therealbill/swarm,shubheksha/docker.github.io,jzwlqx/denverdino.github.io,dims/swarm,gdevillele/docker.github.io,resouer/swarm,parapsyche/swarm,u2mejc/swarm,therealbill/swarm,PeoplePerHour/libswarm,unodba/swarm,adouang/swarm,vieux/swarm,ealang/swarm,mavenugo/swarm,NunoEdgarGub1/swarm,rillig/docker.github.io,bpradipt/swarm,Aorjoa/swarm,menglingwei/denverdino.github.io,srikalyan/swarm,BSWANG/denverdino.github.io,menglingwei/denverdino.github.io,LuisBosquez/docker.github.io,ricca742/swarm,pssahi/swarm,shin-/docker.github.io,FollowMyDev/swarm,johnstep/docker.github.io,morpheyesh/swarm,troy0820/docker.github.io,raoofm/swarm,docker/docker.github.io,shubheksha/docker.github.io,tnachen/swarm,beni55/swarm-1,jimmyxian/swarm,denverdino/swarm,ezrasilvera/swarm,u2mejc/swarm,denverdino/swarm-1,pdevine/swarm,chanwit/swarm,rancher/swarm,aluzzardi/swarm,rajdeepd/swarm,rancher/swarm,echupriyanov/swarm,rutulpatel/swarm,bfirsh/swarm,auzias/swarm,BSWANG/denverdino.github.io,atlassian/swarm,aduermael/docker.github.io,jimenez/swarm,bdwill/docker.github.io,yp-engineering/swarm,sanscontext/docker.github.io,ejholmes/swarm,kunalkushwaha/swarm,docker/docker.github.io,PeoplePerHour/libswarm,qianzhangxa/swarm,gradywang/swarm,rillig/docker.github.io,polyverse-security/swarm,CodeNow/swarm,ejholmes/swarm,jay-lau/swarm,joaofnfernandes/docker.github.io,dnephin/swarm,linecheng/swarm,megamsys/swarm,Spritekin/swarm,denverdino/docker.github.io,rav121/swarm,rajdeepd/swarm,francisbouvier/swarm,danix800/docker.github.io,iaintshine/swarm,sfsmithcha/swarm,jzwlqx/denverdino.github.io,doronp/swarm,anweiss/docker.github.io,shubheksha/docker.github.io,gdevillele/docker.github.io,snrism/swarm,ehazlett/swarm,ehazlett/swarm,rutulpatel/swarm,docker-zh/docker.github.io,auzias/swarm,krystism/swarm,cgvarela/swarm