refactor: separate responsibilties
refactor: separate responsibilties

Before, priority carried two pieces of information.

One: priority as defined by remote peer
Two: whether task is trashed

This assumes the protocol is defined for natural numbers instead of
integers. That may not always be the case. Better to leave that
assumption outside so this package isn't coupled to the whims of the
protocol.

The protocol may be changed to allow any integer value to be used.
Hopefully by that time, new responsibilties weren't added to the
Priority variable.

License: MIT
Signed-off-by: Brian Tiger Chow <760e7dab2836853c63805033e514668301fa9c47@perfmode.com>

RX14/go-ipfs,Quantomicus/go-ipfs,antonio2718/go-ipfs,kevina/go-ipfs,bussiere/go-ipfs,makevoid/go-ipfs,ehd/go-ipfs,ehd/go-ipfs,miolini/go-ipfs,modong/go-ipfs,juztamau5/go-ipfs,sroerick/go-ipfs,danoctavian/go-ipfs,code4/go-ipfs,klauspost/go-ipfs,dylanPowers/go-ipfs,modong/go-ipfs,juztamau5/go-ipfs,shaunstanislaus/go-ipfs,Huangyan9188/go-ipfs,torarnv/go-ipfs,Kubuxu/go-ipfs,Quiark/go-ipfs,mantyr/go-ipfs,juztamau5/go-ipfs,tswindell/go-ipfs,travisperson/go-ipfs,ckeenan/go-ipfs,JustinDrake/go-ipfs,jefhe2005/ipfs,dylanPowers/go-ipfs,heems/go-ipfs,nchabra/go-ipfs,travisperson/go-ipfs,torarnv/go-ipfs,sroerick/go-ipfs,mjanczyk/go-ipfs,tswindell/go-ipfs,csasarak/go-ipfs,ianopolous/go-ipfs,peersafe/go-ipfs,ForrestWeston/go-ipfs,davidar/go-ipfs,ianopolous/go-ipfs,ion1/go-ipfs,davidar/go-ipfs,ckeenan/go-ipfs,JustinDrake/go-ipfs,modong/go-ipfs,danoctavian/go-ipfs,RealImage/go-ipfs,keltia/go-ipfs,MichaelMure/go-ipfs,mildred/go-ipfs,liufeiit/go-ipfs,srikumarks/go-ipfs,sahib/go-ipfs,locusf/go-ipfs,mildred/go-ipfs,sroerick/go-ipfs,ipfs-filestore/go-ipfs,mantyr/go-ipfs,gatesvp/go-ipfs,peersafe/go-ipfs,Quantomicus/go-ipfs,david415/go-ipfs,insionng/go-ipfs,makevoid/go-ipfs,RX14/go-ipfs,antonio2718/go-ipfs,danoctavian/go-ipfs,heems/go-ipfs,OpenBazaar/go-ipfs,shaunstanislaus/go-ipfs,nchabra/go-ipfs,miolini/go-ipfs,ipfs-filestore/go-ipfs,thelinuxkid/go-ipfs,sahib/go-ipfs,MichaelMure/go-ipfs,thelinuxkid/go-ipfs,OpenBazaar/go-ipfs,david415/go-ipfs,LucilleH/go-ipfs,locusf/go-ipfs,sahib/go-ipfs,kpcyrd/go-ipfs,aviau/go-ipfs,miolini/go-ipfs,rht/go-ipfs,WilliButz/go-ipfs,MrSparc/go-ipfs,interfect/go-ipfs,ForrestWeston/go-ipfs,jefhe2005/ipfs,makevoid/go-ipfs,kevina/go-ipfs,kyledrake/go-ipfs,adrusi/go-ipfs,sbruce/go-ipfs,mildred/go-ipfs,Stebalien/go-ipfs,kyledrake/go-ipfs,david415/go-ipfs,wking/go-ipfs,insionng/go-ipfs,shadoxx/go-ipfs,kpcyrd/go-ipfs,ion1/go-ipfs,insionng/go-ipfs,willglynn/go-ipfs,moreati/go-ipfs,antonio2718/go-ipfs,liufeiit/go-ipfs,palkeo/go-ipfs,adrusi/go-ipfs,WeMeetAgain/go-ipfs,liufeiit/go-ipfs,MichaelMure/go-ipfs,diasdavid/go-ipfs,keltia/go-ipfs,dylanPowers/go-ipfs,ckeenan/go-ipfs,gatesvp/go-ipfs,aviau/go-ipfs,srikumarks/go-ipfs,mjanczyk/go-ipfs,code4/go-ipfs,bconfais/go-ipfs,Quiark/go-ipfs,AtnNn/go-ipfs,LucilleH/go-ipfs,klauspost/go-ipfs,thelinuxkid/go-ipfs,willglynn/go-ipfs,ForrestWeston/go-ipfs,palkeo/go-ipfs,chriscool/go-ipfs,locusf/go-ipfs,srikumarks/go-ipfs,MrSparc/go-ipfs,WeMeetAgain/go-ipfs,rschulman/go-ipfs,MrSparc/go-ipfs,rschulman/go-ipfs,diasdavid/go-ipfs,DavidHowlett/go-ipfs,atcsecure/go-ipfs,interfect/go-ipfs,torarnv/go-ipfs,willglynn/go-ipfs,diasdavid/go-ipfs,Quantomicus/go-ipfs,csasarak/go-ipfs,mantyr/go-ipfs,wking/go-ipfs,Huangyan9188/go-ipfs,lgierth/go-ipfs,ion1/go-ipfs,LucilleH/go-ipfs,RX14/go-ipfs,sbruce/go-ipfs,ianopolous/go-ipfs,palkeo/go-ipfs,Quiark/go-ipfs,MichalPokorny/go-ipfs,heems/go-ipfs,Huangyan9188/go-ipfs,chriscool/go-ipfs,gatesvp/go-ipfs,llawall/go-ipfs,ipfs-filestore/go-ipfs,shaunstanislaus/go-ipfs,Luzifer/go-ipfs,bussiere/go-ipfs,adrusi/go-ipfs,chriscool/go-ipfs,keltia/go-ipfs,DavidHowlett/go-ipfs,ehd/go-ipfs,sysbot/go-ipfs,RealImage/go-ipfs,MichalPokorny/go-ipfs,atcsecure/go-ipfs,kevina/go-ipfs,sysbot/go-ipfs,Stebalien/go-ipfs,AtnNn/go-ipfs,mjanczyk/go-ipfs,llawall/go-ipfs,rschulman/go-ipfs,Kubuxu/go-ipfs,rht/go-ipfs,AtnNn/go-ipfs,WilliButz/go-ipfs,lgierth/go-ipfs,Luzifer/go-ipfs,interfect/go-ipfs,kpcyrd/go-ipfs,Kubuxu/go-ipfs,JustinDrake/go-ipfs,shadoxx/go-ipfs,bussiere/go-ipfs,Luzifer/go-ipfs,klauspost/go-ipfs,bconfais/go-ipfs,code4/go-ipfs,moreati/go-ipfs,csasarak/go-ipfs,RealImage/go-ipfs,rht/go-ipfs,davidar/go-ipfs,bconfais/go-ipfs,wking/go-ipfs,MichalPokorny/go-ipfs,lgierth/go-ipfs,sbruce/go-ipfs,aviau/go-ipfs,atcsecure/go-ipfs,peersafe/go-ipfs,shadoxx/go-ipfs,WeMeetAgain/go-ipfs,Stebalien/go-ipfs,tswindell/go-ipfs,nchabra/go-ipfs,kyledrake/go-ipfs,DavidHowlett/go-ipfs,OpenBazaar/go-ipfs,WilliButz/go-ipfs,llawall/go-ipfs,moreati/go-ipfs,jefhe2005/ipfs