Properly handle the phoneQueue!
Properly handle the phoneQueue!

We were treating the phoneQueue as a stack instead of a
queue (!!!). This worked most of the time because the queue/stack
would tend to have only one item in it, so treating it as a stack was
the same as a queue. However on a slow or flaking network, more then
one item can accumulate in phoneQueue in which case the blocks would
be sent out of order to the Companion. Many times even this is
harmless, but not always. For example in the case of a very slow
network, the entire app will be queued and served out of order, so
the (clear-current-form) call will wind up last instead of first,
leaving the App Inventor Programmer looking at a blank screen on her
phone!

Change-Id: I6d85fc938426559d69cd527465ce0debcd83d2bc

kidebit/https-github.com-wicedfast-appinventor-sources,awoodworth/appinventor-sources,tiffanyle/appinventor-sources,jsheldonmit/appinventor-sources,kannan-usf/AppInventorJavaBridge,FIRST-Tech-Challenge/appinventor-sources,CoderDojoLX/appinventor-sources,frfranca/appinventor-sources,fturbak/appinventor-sources,emeryotopalik/appinventor-sources,marksherman/appinventor-sources,ZachLamb/appinventor-sources,mintingle/appinventor-sources,wanddy/ai4all2,AlanRosenthal/appinventor-sources,mit-cml/appinventor-sources,wanddy/appinventor-sources,anseo/friedgerAI24BLE,ZachLamb/appinventor-sources,cs6510/CS6510-LiveEdit-Onyeka,wanddy/ai4cn,cs6510/CS6510-LiveEdit-Onyeka,anseo/friedgerAI24BLE,wanddy/ai4all2,KeithGalli/appinventor-sources,gitars/appinventor-sources,liyucun/appinventor-sources,warren922/appinventor-sources,gitars/appinventor-sources,youprofit/appinventor-sources,aouskaroui/appinventor-sources,Mateopato/appinventor-sources,mit-cml/appinventor-sources,fmntf/appinventor-sources,Edeleon4/punya,tvomf/appinventor-mapps,AlanRosenthal/appinventor-sources,wanddy/ai4all2,warren922/appinventor-sources,liyucun/appinventor-sources,weihuali0509/web-appinventor,ajcolter/appinventor-sources,liyucun/appinventor-sources,Momoumar/appinventor-sources,wanddy/ai4cn,nwtel/appinventor-sources,josmas/app-inventor,nmcalabroso/appinventor-sources,sujianping/appinventor-sources,Edeleon4/punya,wicedfast/appinventor-sources,onyeka/AppInventor-WebApp,egiurleo/appinventor-sources,emeryotopalik/appinventor-sources,sujianping/appinventor-sources,mit-dig/punya,E-Hon/appinventor-sources,jcweaver/appinventorTutorial,anseo/friedgerAI24BLE,graceRyu/appinventor-sources,joshaham/latest_app_inventor,fturbak/appinventor-sources,jisqyv/appinventor-sources,E-Hon/appinventor-sources,ewpatton/appinventor-sources,fturbak/appinventor-sources,tiffanyle/appinventor-sources,tvomf/appinventor-mapps,jcweaver/appinventorTutorial,afmckinney/appinventor-sources,mit-dig/punya,thilankam/appinventor-sources,farxinu/appinventor-sources,marksherman/appinventor-sources,CoderDojoLX/appinventor-sources,onyeka/AppInventor-WebApp,shilpamagrawal15/appinventor-sources,themadrobot/appinventor-sources,jisqyv/appinventor-sources,onyeka/AppInventor-WebApp,onyeka/AppInventor-WebApp,themadrobot/appinventor-sources,mintingle/appinventor-sources,wanddy/ai4cn,William-Byrne/appinventor-sources,weihuali0509/appinventor-sources,mit-cml/appinventor-sources,fmntf/appinventor-sources,awoodworth/appinventor-sources,thilankam/appinventor-sources,josmas/app-inventor,jithinbp/appinventor-sources,frfranca/appinventor-sources,nickboucart/appinventor-sources,jisqyv/appinventor-sources,E-Hon/appinventor-sources,ZachLamb/appinventor-sources,nmcalabroso/appinventor-sources,mark-friedman/web-appinventor,barreeeiroo/appinventor-sources,youprofit/appinventor-sources,themadrobot/appinventor-sources,kannan-usf/AppInventorJavaBridge,DRavnaas/appinventor-clone,bxie/appinventor-sources,jcweaver/appinventorTutorial,shilpamagrawal15/appinventor-sources,CoderDojoLX/appinventor-sources,puravidaapps/appinventor-sources,jsheldonmit/appinventor-sources,toropeza/appinventor-sources,Mateopato/appinventor-sources,Momoumar/appinventor-sources,warren922/appinventor-sources,thequixotic/appinventor-sources,ajcolter/appinventor-sources,LaboratoryForPlayfulComputation/appinventor-sources,dengxinyue0420/appinventor-sources,shilpamagrawal15/appinventor-sources,egiurleo/appinventor-sources,mit-cml/appinventor-sources,marksherman/appinventor-sources,kkashi01/appinventor-sources,ram8647/appinventor-sources,Edeleon4/punya,JalexChang/appinventor-sources,graceRyu/appinventor-sources,toropeza/appinventor-sources,themadrobot/appinventor-sources,jithinbp/appinventor-sources,doburaimo/appinventor-sources,doburaimo/appinventor-sources,kpjs4s/AppInventorJavaBridgeCodeGen,wanddy/ai4cn,weihuali0509/appinventor-sources,cs6510/CS6510-LiveEdit-Onyeka,satgod/appinventor,jcweaver/appinventorTutorial,thilankam/appinventor-sources,emeryotopalik/appinventor-sources,Momoumar/appinventor-sources,satgod/appinventor,frfranca/appinventor-sources,anseo/friedgerAI24BLE,marksherman/appinventor-sources,GodUseVPN/appinventor-sources,spefley/appinventor-sources,ram8647/appinventor-sources,themadrobot/appinventor-sources,ewpatton/appinventor-sources,ewpatton/appinventor-sources,mintingle/appinventor-sources,Klomi/appinventor-sources,fturbak/appinventor-sources,DRavnaas/appinventor-clone,halatmit/appinventor-sources,egiurleo/appinventor-sources,mintingle/appinventor-sources,dengxinyue0420/appinventor-sources,hasi96/appinventor-sources,joshaham/latest_app_inventor,farxinu/appinventor-sources,tatuzaumm/app-inventor2-custom,satgod/appinventor,mit-dig/punya,awoodworth/appinventor-sources,thilankam/appinventor-sources,tatuzaumm/app-inventor2-custom,jsheldonmit/appinventor-sources,joshaham/latest_app_inventor,doburaimo/appinventor-sources,jisqyv/appinventor-sources,JalexChang/appinventor-sources,weihuali0509/web-appinventor,liyucun/appinventor-sources,thilankam/appinventor-sources,kidebit/AudioBlurp,DRavnaas/appinventor-clone,GodUseVPN/appinventor-sources,tiffanyle/appinventor-sources,KeithGalli/appinventor-sources,William-Byrne/appinventor-sources,doburaimo/appinventor-sources,bxie/appinventor-sources,awoodworth/appinventor-sources,kidebit/AudioBlurp,hasi96/appinventor-sources,GodUseVPN/appinventor-sources,nmcalabroso/appinventor-sources,ZachLamb/appinventor-sources,tvomf/appinventor-mapps,doburaimo/appinventor-sources,ram8647/appinventor-sources,satgod/appinventor,jsheldonmit/appinventor-sources,kkashi01/appinventor-sources,graceRyu/appinventor-sources,lizlooney/appinventor-sources,joshaham/latest_app_inventor,DRavnaas/appinventor-clone,youprofit/appinventor-sources,mit-cml/appinventor-sources,aouskaroui/appinventor-sources,Momoumar/appinventor-sources,RachaelT/appinventor-sources,bitsecure/appinventor1-sources,weihuali0509/web-appinventor,krishc90/APP-INVENTOR,cs6510/CS6510-LiveEdit-Onyeka,thequixotic/appinventor-sources,krishc90/APP-INVENTOR,barreeeiroo/appinventor-sources,JalexChang/appinventor-sources,ajcolter/appinventor-sources,cs6510/CS6510-LiveEdit-Onyeka,Mateopato/appinventor-sources,nwtel/appinventor-sources,kkashi01/appinventor-sources,weihuali0509/web-appinventor,mark-friedman/web-appinventor,LaboratoryForPlayfulComputation/appinventor-sources,spefley/appinventor-sources,mit-dig/punya,halatmit/appinventor-sources,kpjs4s/AppInventorJavaBridgeCodeGen,nickboucart/appinventor-sources,bxie/appinventor-sources,tvomf/appinventor-mapps,tatuzaumm/app-inventor2-custom,jithinbp/appinventor-sources,thequixotic/appinventor-sources,fmntf/appinventor-sources,hasi96/appinventor-sources,LaboratoryForPlayfulComputation/appinventor-sources,AlanRosenthal/appinventor-sources,frfranca/appinventor-sources,E-Hon/appinventor-sources,krishc90/APP-INVENTOR,William-Byrne/appinventor-sources,farxinu/appinventor-sources,Momoumar/appinventor-sources,bitsecure/appinventor1-sources,wadleo/appinventor-sources,puravidaapps/appinventor-sources,wadleo/appinventor-sources,ram8647/appinventor-sources,mark-friedman/web-appinventor,jisqyv/appinventor-sources,CoderDojoLX/appinventor-sources,toropeza/appinventor-sources,egiurleo/appinventor-sources,josmas/app-inventor,ram8647/appinventor-sources,thequixotic/appinventor-sources,GodUseVPN/appinventor-sources,Mateopato/appinventor-sources,spefley/appinventor-sources,jithinbp/appinventor-sources,nickboucart/appinventor-sources,yflou520/appinventor-sources,afmckinney/appinventor-sources,kkashi01/appinventor-sources,satgod/appinventor,LaboratoryForPlayfulComputation/appinventor-sources,onyeka/AppInventor-WebApp,graceRyu/appinventor-sources,awoodworth/appinventor-sources,dengxinyue0420/appinventor-sources,mintingle/appinventor-sources,lizlooney/appinventor-sources,mintingle/appinventor-sources,JalexChang/appinventor-sources,spefley/appinventor-sources,weihuali0509/appinventor-sources,mark-friedman/web-appinventor,krishc90/APP-INVENTOR,tatuzaumm/app-inventor2-custom,halatmit/appinventor-sources,KeithGalli/appinventor-sources,kpjs4s/AppInventorJavaBridgeCodeGen,bitsecure/appinventor1-sources,barreeeiroo/appinventor-sources,weihuali0509/web-appinventor,marksherman/appinventor-sources,josmas/app-inventor,kpjs4s/AppInventorJavaBridgeCodeGen,shilpamagrawal15/appinventor-sources,wanddy/ai4all2,wadleo/appinventor-sources,afmckinney/appinventor-sources,nwtel/appinventor-sources,toropeza/appinventor-sources,yflou520/appinventor-sources,jcweaver/appinventorTutorial,Klomi/appinventor-sources,Klomi/appinventor-sources,jsheldonmit/appinventor-sources,FIRST-Tech-Challenge/appinventor-sources,William-Byrne/appinventor-sources,shilpamagrawal15/appinventor-sources,jithinbp/appinventor-sources,farxinu/appinventor-sources,nwtel/appinventor-sources,FIRST-Tech-Challenge/appinventor-sources,fturbak/appinventor-sources,yflou520/appinventor-sources,kannan-usf/AppInventorJavaBridge,warren922/appinventor-sources,gitars/appinventor-sources,halatmit/appinventor-sources,dengxinyue0420/appinventor-sources,CoderDojoLX/appinventor-sources,liyucun/appinventor-sources,frfranca/appinventor-sources,KeithGalli/appinventor-sources,hasi96/appinventor-sources,yflou520/appinventor-sources,mit-dig/punya,kannan-usf/AppInventorJavaBridge,FIRST-Tech-Challenge/appinventor-sources,Edeleon4/punya,yflou520/appinventor-sources,ZachLamb/appinventor-sources,nmcalabroso/appinventor-sources,wadleo/appinventor-sources,AlanRosenthal/appinventor-sources,puravidaapps/appinventor-sources,nwtel/appinventor-sources,nmcalabroso/appinventor-sources,wicedfast/appinventor-sources,egiurleo/appinventor-sources,gitars/appinventor-sources,weihuali0509/appinventor-sources,wicedfast/appinventor-sources,toropeza/appinventor-sources,mit-dig/punya,AlanRosenthal/appinventor-sources,KeithGalli/appinventor-sources,tiffanyle/appinventor-sources,puravidaapps/appinventor-sources,lizlooney/appinventor-sources,bxie/appinventor-sources,ajcolter/appinventor-sources,E-Hon/appinventor-sources,JalexChang/appinventor-sources,shilpamagrawal15/appinventor-sources,wadleo/appinventor-sources,kidebit/https-github.com-wicedfast-appinventor-sources,warren922/appinventor-sources,josmas/app-inventor,kidebit/https-github.com-wicedfast-appinventor-sources,wanddy/appinventor-sources,Edeleon4/punya,fmntf/appinventor-sources,youprofit/appinventor-sources,mit-cml/appinventor-sources,nickboucart/appinventor-sources,barreeeiroo/appinventor-sources,wanddy/ai4all2,josmas/app-inventor,kpjs4s/AppInventorJavaBridgeCodeGen,spefley/appinventor-sources,wanddy/appinventor-sources,Edeleon4/punya,tvomf/appinventor-mapps,tiffanyle/appinventor-sources,RachaelT/appinventor-sources,kannan-usf/AppInventorJavaBridge,sujianping/appinventor-sources,kkashi01/appinventor-sources,sujianping/appinventor-sources,aouskaroui/appinventor-sources,DRavnaas/appinventor-clone,kidebit/AudioBlurp,emeryotopalik/appinventor-sources,wanddy/appinventor-sources,bitsecure/appinventor1-sources,wanddy/appinventor-sources,lizlooney/appinventor-sources,gitars/appinventor-sources,fmntf/appinventor-sources,halatmit/appinventor-sources,puravidaapps/appinventor-sources,marksherman/appinventor-sources,wanddy/ai4cn,hasi96/appinventor-sources,aouskaroui/appinventor-sources,William-Byrne/appinventor-sources,wicedfast/appinventor-sources,krishc90/APP-INVENTOR,RachaelT/appinventor-sources,jisqyv/appinventor-sources,FIRST-Tech-Challenge/appinventor-sources,farxinu/appinventor-sources,wicedfast/appinventor-sources,RachaelT/appinventor-sources,aouskaroui/appinventor-sources,kkashi01/appinventor-sources,thequixotic/appinventor-sources,barreeeiroo/appinventor-sources,RachaelT/appinventor-sources,graceRyu/appinventor-sources,joshaham/latest_app_inventor,ewpatton/appinventor-sources,tatuzaumm/app-inventor2-custom,kidebit/https-github.com-wicedfast-appinventor-sources,weihuali0509/appinventor-sources,bitsecure/appinventor1-sources,LaboratoryForPlayfulComputation/appinventor-sources,ewpatton/appinventor-sources,mit-dig/punya,nickboucart/appinventor-sources,kidebit/AudioBlurp,Klomi/appinventor-sources,bxie/appinventor-sources,Klomi/appinventor-sources,afmckinney/appinventor-sources,mark-friedman/web-appinventor,ewpatton/appinventor-sources,youprofit/appinventor-sources,sujianping/appinventor-sources,emeryotopalik/appinventor-sources,GodUseVPN/appinventor-sources,afmckinney/appinventor-sources,halatmit/appinventor-sources,ajcolter/appinventor-sources,lizlooney/appinventor-sources,Mateopato/appinventor-sources,dengxinyue0420/appinventor-sources