Fix message handling in select requests
Fix message handling in select requests

percept_db used to send results in untagged messages, and use
a non selective receive to extract them. When percept is used
from the shell process, this can confuse other messages with
the actual result.

Add a tag to the message to be {result, Result}.

schlagert/otp,saleyn/otp,release-project/otp,jj1bdx/otp,dumbbell/otp,cobusc/otp,rlipscombe/otp,gjaldon/otp,tuncer/otp,cobusc/otp,potatosalad/otp,release-project/otp,mikpe/otp,massemanet/otp,uabboli/otp,krishnakumar4a4/otp,RJ/otp,vic/otp,weisslj/otp,bsmr-erlang/otp,paladim/otp,awetzel/otp,marquisthunder/otp,RichMorin/otp,cnbin/otp,psyeugenic/otp,gjaldon/otp,platinumthinker/otp,RGafiyatullin/otp,getong/otp,RaimoNiskanen/otp,Teino1978-Corp/otp,hairyhum/otp,release-project/otp,entropiae/otp,paulcager/otp,jemsbhai/otp,isvilen/otp,benoitc/otp-1,lemenkov/otp,lhslll/otp,g-andrade/otp,lrascao/otp,bjorng/otp,lianghaivv/otp,derek121/otp,yangchengjian/otp,massemanet/otp,matwey/otp,beni55/otp,bernardd/otp,bernardd/otp,lightcyphers/otp,kvakvs/otp,RichMorin/otp,vic/otp,uabboli/otp,paladim/otp,stolen/otp,mikpe/otp,uabboli/otp,lemenkov/otp,palas/otp,emacsmirror/erlang,Teino1978-Corp/erlang-otp,matwey/otp,yangchengjian/otp,mikpe/otp,aboroska/otp,potatosalad/otp,enikki/otp,mikpe/otp,platinumthinker/otp,NOMORECOFFEE/otp,jinshana/otp,RoadRunnr/otp,dgud/otp,johanclaesson/otp,johanclaesson/otp,tuncer/otp,RJ/otp,ader1990/otp,cnbin/otp,dgud/otp,haguenau/otp,ahmedshafeeq/otp,dgud/otp,electricimp/otp,benoitc/otp-1,ferd/otp,riverrun/otp,neeraj9/otp,lrascao/otp,RJ/otp,klarna/otp,isvilen/otp,gjaldon/otp,electricimp/otp,basho/otp,potatosalad/otp,release-project/otp,dumbbell/otp,mujiatong/otp,electricimp/otp,marquisthunder/otp,NOMORECOFFEE/otp,palas/otp,vladdu/otp,dumbbell/otp,hairyhum/otp,VincentHHL/otp,beni55/otp,vladdu/otp,isvilen/otp,jemsbhai/otp,riverrun/otp,jj1bdx/otp,VincentHHL/otp,paladim/otp,beni55/otp,massemanet/otp,Teino1978-Corp/erlang-otp,bjorng/otp,bsmr-erlang/otp,Teino1978-Corp/erlang-otp,falkevik/otp,bernardd/otp,emacsmirror/erlang,krishnakumar4a4/otp,msantos/otp,lhslll/otp,lrascao/otp,jemsbhai/otp,sammoth-wazoku/otp,aboroska/otp,awetzel/otp,kvakvs/otp,g-andrade/otp,mujiatong/otp,neeraj9/otp,jemsbhai/otp,enikki/otp,ahmedshafeeq/otp,Teino1978-Corp/erlang-otp,enikki/otp,legoscia/otp,hairyhum/otp,entropiae/otp,potatosalad/otp,RoadRunnr/otp,msantos/otp,ader1990/otp,kvakvs/otp,sdebnath/otp,vladdu/otp,isvilen/otp,sammoth-wazoku/otp,emacsmirror/erlang,RGafiyatullin/otp,erlang/otp,jinshana/otp,basho/otp,vic/otp,vic/otp,johanclaesson/otp,jamesruan/otp,enikki/otp,neeraj9/otp,isvilen/otp,RaimoNiskanen/otp,derek121/otp,mikpe/otp,lemenkov/otp,stolen/otp,goertzenator/otp,paladim/otp,emile/otp,jj1bdx/otp,c-rack/otp,RoadRunnr/otp,release-project/otp,weisslj/otp,cnbin/otp,VincentHHL/otp,getong/otp,RaimoNiskanen/otp,emacsmirror/erlang,RJ/otp,GinjaNinja32/otp,fenollp/otp,lucafavatella/otp,RaimoNiskanen/otp,isvilen/otp,RGafiyatullin/otp,ahmedshafeeq/otp,weisslj/otp,sammoth-wazoku/otp,paladim/otp,jamesruan/otp,lhslll/otp,theom/otp,stolen/otp,VincentHHL/otp,potatosalad/otp,ader1990/otp,klarna/otp,jinshana/otp,entropiae/otp,GinjaNinja32/otp,lucafavatella/otp,tuncer/otp,saleyn/otp,lemenkov/otp,RGafiyatullin/otp,sitexa/otp,mujiatong/otp,emile/otp,bjorng/otp,marquisthunder/otp,falkevik/otp,isvilen/otp,release-project/otp,ader1990/otp,sammoth-wazoku/otp,massemanet/otp,jamesruan/otp,beni55/otp,benoitc/otp-1,getong/otp,beni55/otp,erlang/otp,bugs-erlang-org/otp,massemanet/otp,jj1bdx/otp,weisslj/otp,legoscia/otp,lianghaivv/otp,c-rack/otp,Teino1978-Corp/otp,RichMorin/otp,lightcyphers/otp,massemanet/otp,c-rack/otp,jemsbhai/otp,electricimp/otp,bsmr-erlang/otp,haguenau/otp,ader1990/otp,jj1bdx/otp,electricimp/otp,neeraj9/otp,theom/otp,kvakvs/otp,emile/otp,aboroska/otp,uabboli/otp,dumbbell/otp,paladim/otp,psyeugenic/otp,msantos/otp,jinshana/otp,jinshana/otp,vinoski/otp,riverrun/otp,erlang/otp,basho/otp,ahmedshafeeq/otp,marquisthunder/otp,neeraj9/otp,cobusc/otp,erlang/otp,jj1bdx/otp,bsmr-erlang/otp,theom/otp,weisslj/otp,mujiatong/otp,falkevik/otp,vinoski/otp,electricimp/otp,goertzenator/otp,GinjaNinja32/otp,ahmedshafeeq/otp,RaimoNiskanen/otp,theom/otp,lightcyphers/otp,msantos/otp,uabboli/otp,psyeugenic/otp,fenollp/otp,bernardd/otp,g-andrade/otp,NOMORECOFFEE/otp,sitexa/otp,goertzenator/otp,vinoski/otp,bugs-erlang-org/otp,Teino1978-Corp/otp,bjorng/otp,cobusc/otp,jinshana/otp,VincentHHL/otp,jamesruan/otp,mikpe/otp,bjorng/otp,falkevik/otp,RGafiyatullin/otp,electricimp/otp,fenollp/otp,dgud/otp,awetzel/otp,yangchengjian/otp,ferd/otp,fenollp/otp,haguenau/otp,riverrun/otp,schlagert/otp,dgud/otp,matwey/otp,jinshana/otp,marquisthunder/otp,ferd/otp,saleyn/otp,Teino1978-Corp/erlang-otp,platinumthinker/otp,ahmedshafeeq/otp,potatosalad/otp,emacsmirror/erlang,Teino1978-Corp/otp,bjorng/otp,paulcager/otp,neeraj9/otp,bsmr-erlang/otp,RaimoNiskanen/otp,vic/otp,potatosalad/otp,lightcyphers/otp,c-rack/otp,klarna/otp,emacsmirror/erlang,theom/otp,RoadRunnr/otp,lantti/otp,ahmedshafeeq/otp,aboroska/otp,mikpe/otp,jamesruan/otp,vic/otp,sammoth-wazoku/otp,derek121/otp,goertzenator/otp,NOMORECOFFEE/otp,yangchengjian/otp,ader1990/otp,electricimp/otp,fenollp/otp,VincentHHL/otp,lianghaivv/otp,aboroska/otp,johanclaesson/otp,GinjaNinja32/otp,bernardd/otp,palas/otp,rlipscombe/otp,emacsmirror/erlang,RichMorin/otp,paladim/otp,sitexa/otp,lhslll/otp,cnbin/otp,lianghaivv/otp,lhslll/otp,sammoth-wazoku/otp,rlipscombe/otp,RichMorin/otp,release-project/otp,awetzel/otp,legoscia/otp,bjorng/otp,enikki/otp,g-andrade/otp,RichMorin/otp,emile/otp,aboroska/otp,haguenau/otp,psyeugenic/otp,getong/otp,lightcyphers/otp,emacsmirror/erlang,lantti/otp,sitexa/otp,paulcager/otp,vinoski/otp,sitexa/otp,paulcager/otp,bugs-erlang-org/otp,basho/otp,sdebnath/otp,legoscia/otp,cnbin/otp,tuncer/otp,bernardd/otp,entropiae/otp,goertzenator/otp,lhslll/otp,basho/otp,potatosalad/otp,benoitc/otp-1,lhslll/otp,gjaldon/otp,kvakvs/otp,hairyhum/otp,dgud/otp,awetzel/otp,dumbbell/otp,haguenau/otp,RoadRunnr/otp,schlagert/otp,schlagert/otp,tuncer/otp,ader1990/otp,lightcyphers/otp,saleyn/otp,g-andrade/otp,falkevik/otp,riverrun/otp,isvilen/otp,c-rack/otp,lantti/otp,awetzel/otp,lucafavatella/otp,dgud/otp,Teino1978-Corp/erlang-otp,g-andrade/otp,lrascao/otp,jinshana/otp,NOMORECOFFEE/otp,tuncer/otp,saleyn/otp,mujiatong/otp,lucafavatella/otp,potatosalad/otp,bugs-erlang-org/otp,ferd/otp,derek121/otp,ferd/otp,aboroska/otp,aboroska/otp,sdebnath/otp,klarna/otp,ader1990/otp,gjaldon/otp,sdebnath/otp,enikki/otp,derek121/otp,lhslll/otp,erlang/otp,haguenau/otp,NOMORECOFFEE/otp,basho/otp,RichMorin/otp,VincentHHL/otp,RaimoNiskanen/otp,matwey/otp,emile/otp,goertzenator/otp,jj1bdx/otp,klarna/otp,ferd/otp,lightcyphers/otp,derek121/otp,legoscia/otp,release-project/otp,jemsbhai/otp,palas/otp,paulcager/otp,kvakvs/otp,yangchengjian/otp,getong/otp,gjaldon/otp,msantos/otp,aboroska/otp,rlipscombe/otp,lucafavatella/otp,kvakvs/otp,jemsbhai/otp,schlagert/otp,Teino1978-Corp/otp,platinumthinker/otp,haguenau/otp,c-rack/otp,gjaldon/otp,entropiae/otp,ferd/otp,vladdu/otp,bjorng/otp,klarna/otp,lemenkov/otp,matwey/otp,paladim/otp,matwey/otp,c-rack/otp,platinumthinker/otp,mikpe/otp,entropiae/otp,bjorng/otp,awetzel/otp,yangchengjian/otp,riverrun/otp,saleyn/otp,RJ/otp,electricimp/otp,RoadRunnr/otp,vladdu/otp,sdebnath/otp,mujiatong/otp,legoscia/otp,weisslj/otp,RJ/otp,g-andrade/otp,krishnakumar4a4/otp,g-andrade/otp,GinjaNinja32/otp,lrascao/otp,dumbbell/otp,benoitc/otp-1,dumbbell/otp,vinoski/otp,goertzenator/otp,awetzel/otp,paulcager/otp,yangchengjian/otp,Teino1978-Corp/otp,benoitc/otp-1,schlagert/otp,cnbin/otp,goertzenator/otp,cobusc/otp,isvilen/otp,beni55/otp,dumbbell/otp,Teino1978-Corp/otp,riverrun/otp,uabboli/otp,GinjaNinja32/otp,neeraj9/otp,palas/otp,bugs-erlang-org/otp,Teino1978-Corp/otp,vinoski/otp,bernardd/otp,enikki/otp,RoadRunnr/otp,cobusc/otp,platinumthinker/otp,lemenkov/otp,paulcager/otp,jj1bdx/otp,gjaldon/otp,NOMORECOFFEE/otp,RoadRunnr/otp,vinoski/otp,hairyhum/otp,weisslj/otp,lianghaivv/otp,legoscia/otp,getong/otp,GinjaNinja32/otp,theom/otp,uabboli/otp,lucafavatella/otp,GinjaNinja32/otp,cnbin/otp,marquisthunder/otp,cobusc/otp,sammoth-wazoku/otp,stolen/otp,hairyhum/otp,palas/otp,RaimoNiskanen/otp,vinoski/otp,bugs-erlang-org/otp,mikpe/otp,theom/otp,erlang/otp,matwey/otp,hairyhum/otp,ferd/otp,emile/otp,vic/otp,release-project/otp,uabboli/otp,lrascao/otp,RoadRunnr/otp,erlang/otp,kvakvs/otp,erlang/otp,msantos/otp,krishnakumar4a4/otp,entropiae/otp,ferd/otp,palas/otp,bsmr-erlang/otp,neeraj9/otp,klarna/otp,NOMORECOFFEE/otp,cobusc/otp,krishnakumar4a4/otp,jemsbhai/otp,fenollp/otp,tuncer/otp,emacsmirror/erlang,RJ/otp,getong/otp,dumbbell/otp,lianghaivv/otp,g-andrade/otp,VincentHHL/otp,legoscia/otp,sitexa/otp,jj1bdx/otp,RichMorin/otp,lucafavatella/otp,sdebnath/otp,sdebnath/otp,jamesruan/otp,stolen/otp,getong/otp,vladdu/otp,basho/otp,beni55/otp,bugs-erlang-org/otp,lrascao/otp,enikki/otp,lantti/otp,derek121/otp,bjorng/otp,saleyn/otp,bsmr-erlang/otp,krishnakumar4a4/otp,rlipscombe/otp,cnbin/otp,basho/otp,erlang/otp,bsmr-erlang/otp,lianghaivv/otp,msantos/otp,erlang/otp,beni55/otp,fenollp/otp,psyeugenic/otp,weisslj/otp,isvilen/otp,klarna/otp,dgud/otp,vinoski/otp,johanclaesson/otp,krishnakumar4a4/otp,bernardd/otp,uabboli/otp,mikpe/otp,bugs-erlang-org/otp,vladdu/otp,emile/otp,sitexa/otp,jamesruan/otp,emile/otp,falkevik/otp,RJ/otp,lantti/otp,vinoski/otp,psyeugenic/otp,c-rack/otp,johanclaesson/otp,falkevik/otp,hairyhum/otp,fenollp/otp,stolen/otp,dgud/otp,getong/otp,g-andrade/otp,lemenkov/otp,emacsmirror/erlang,basho/otp,schlagert/otp,bernardd/otp,vladdu/otp,stolen/otp,lianghaivv/otp,marquisthunder/otp,platinumthinker/otp,massemanet/otp,falkevik/otp,paulcager/otp,psyeugenic/otp,legoscia/otp,marquisthunder/otp,lantti/otp,massemanet/otp,matwey/otp,mujiatong/otp,lantti/otp,derek121/otp,krishnakumar4a4/otp,RaimoNiskanen/otp,potatosalad/otp,tuncer/otp,mujiatong/otp,rlipscombe/otp,getong/otp,matwey/otp,sammoth-wazoku/otp,bsmr-erlang/otp,rlipscombe/otp,schlagert/otp,dumbbell/otp,benoitc/otp-1,jamesruan/otp,ahmedshafeeq/otp,rlipscombe/otp,RGafiyatullin/otp,lantti/otp,lemenkov/otp,emile/otp,vladdu/otp,goertzenator/otp,yangchengjian/otp,jj1bdx/otp,benoitc/otp-1,sdebnath/otp,RGafiyatullin/otp,haguenau/otp,johanclaesson/otp,riverrun/otp,weisslj/otp,rlipscombe/otp,lrascao/otp,platinumthinker/otp,falkevik/otp,rlipscombe/otp,fenollp/otp,lrascao/otp,johanclaesson/otp,entropiae/otp,kvakvs/otp,saleyn/otp,RGafiyatullin/otp,lucafavatella/otp,Teino1978-Corp/erlang-otp,ahmedshafeeq/otp,vic/otp,psyeugenic/otp,theom/otp,saleyn/otp,msantos/otp,tuncer/otp,lightcyphers/otp,massemanet/otp,palas/otp,sitexa/otp,Teino1978-Corp/erlang-otp,stolen/otp,dgud/otp