moveonly: factor out headers processing into separate function
moveonly: factor out headers processing into separate function

ProcessMessages will now return earlier when processing headers
messages, rather than continuing on (and do nothing).

rawodb/bitcoin,FeatherCoin/Feathercoin,GroestlCoin/GroestlCoin,tjps/bitcoin,bitcoinsSG/bitcoin,bespike/litecoin,sebrandon1/bitcoin,rnicoll/bitcoin,RHavar/bitcoin,maaku/bitcoin,ppcoin/ppcoin,jtimon/bitcoin,jmcorgan/bitcoin,fanquake/bitcoin,peercoin/peercoin,domob1812/huntercore,droark/bitcoin,achow101/bitcoin,droark/bitcoin,sstone/bitcoin,wellenreiter01/Feathercoin,TheBlueMatt/bitcoin,sstone/bitcoin,tecnovert/particl-core,alecalve/bitcoin,untrustbank/litecoin,rnicoll/dogecoin,pataquets/namecoin-core,sstone/bitcoin,Kogser/bitcoin,anditto/bitcoin,jnewbery/bitcoin,globaltoken/globaltoken,mitchellcash/bitcoin,mruddy/bitcoin,BTCGPU/BTCGPU,jambolo/bitcoin,wellenreiter01/Feathercoin,MeshCollider/bitcoin,vertcoin/vertcoin,mitchellcash/bitcoin,tecnovert/particl-core,Bushstar/UFO-Project,maaku/bitcoin,myriadcoin/myriadcoin,donaloconnor/bitcoin,Rav3nPL/bitcoin,bitcoin/bitcoin,joshrabinowitz/bitcoin,bitcoinsSG/bitcoin,domob1812/bitcoin,paveljanik/bitcoin,nikkitan/bitcoin,FeatherCoin/Feathercoin,MazaCoin/maza,FeatherCoin/Feathercoin,myriadteam/myriadcoin,maaku/bitcoin,Kogser/bitcoin,yenliangl/bitcoin,pataquets/namecoin-core,mm-s/bitcoin,JeremyRubin/bitcoin,nikkitan/bitcoin,alecalve/bitcoin,pataquets/namecoin-core,starwels/starwels,AkioNak/bitcoin,nikkitan/bitcoin,MarcoFalke/bitcoin,ryanofsky/bitcoin,guncoin/guncoin,alecalve/bitcoin,pataquets/namecoin-core,paveljanik/bitcoin,domob1812/namecore,prusnak/bitcoin,TheBlueMatt/bitcoin,namecoin/namecore,GlobalBoost/GlobalBoost,achow101/bitcoin,domob1812/namecore,vmp32k/litecoin,rnicoll/bitcoin,ryanofsky/bitcoin,r8921039/bitcoin,domob1812/huntercore,Xekyo/bitcoin,deeponion/deeponion,dscotese/bitcoin,droark/bitcoin,1185/starwels,Xekyo/bitcoin,thrasher-/litecoin,peercoin/peercoin,gjhiggins/vcoincore,jamesob/bitcoin,lbryio/lbrycrd,OmniLayer/omnicore,OmniLayer/omnicore,ajtowns/bitcoin,particl/particl-core,gjhiggins/vcoincore,EthanHeilman/bitcoin,gjhiggins/vcoincore,midnightmagic/bitcoin,wellenreiter01/Feathercoin,JeremyRubin/bitcoin,r8921039/bitcoin,vmp32k/litecoin,laudaa/bitcoin,mruddy/bitcoin,tecnovert/particl-core,pstratem/bitcoin,kallewoof/bitcoin,andreaskern/bitcoin,kallewoof/bitcoin,Christewart/bitcoin,prusnak/bitcoin,donaloconnor/bitcoin,r8921039/bitcoin,n1bor/bitcoin,starwels/starwels,vertcoin/vertcoin,cdecker/bitcoin,GroestlCoin/bitcoin,CryptArc/bitcoin,jambolo/bitcoin,starwels/starwels,untrustbank/litecoin,n1bor/bitcoin,vmp32k/litecoin,guncoin/guncoin,domob1812/bitcoin,pstratem/bitcoin,bitcoinknots/bitcoin,guncoin/guncoin,lbryio/lbrycrd,pstratem/bitcoin,Kogser/bitcoin,MazaCoin/maza,anditto/bitcoin,EthanHeilman/bitcoin,afk11/bitcoin,viacoin/viacoin,ppcoin/ppcoin,tjps/bitcoin,MazaCoin/maza,instagibbs/bitcoin,jambolo/bitcoin,DigitalPandacoin/pandacoin,jtimon/bitcoin,lbryio/lbrycrd,monacoinproject/monacoin,laudaa/bitcoin,namecoin/namecore,practicalswift/bitcoin,deeponion/deeponion,stamhe/bitcoin,andreaskern/bitcoin,Kogser/bitcoin,tjps/bitcoin,nikkitan/bitcoin,TheBlueMatt/bitcoin,sebrandon1/bitcoin,anditto/bitcoin,andreaskern/bitcoin,Sjors/bitcoin,BTCGPU/BTCGPU,AkioNak/bitcoin,fujicoin/fujicoin,cdecker/bitcoin,guncoin/guncoin,CryptArc/bitcoin,kallewoof/bitcoin,dscotese/bitcoin,randy-waterhouse/bitcoin,deeponion/deeponion,FeatherCoin/Feathercoin,n1bor/bitcoin,AkioNak/bitcoin,JeremyRubin/bitcoin,viacoin/viacoin,jambolo/bitcoin,sipsorcery/bitcoin,GlobalBoost/GlobalBoost,myriadcoin/myriadcoin,Christewart/bitcoin,jonasschnelli/bitcoin,thrasher-/litecoin,jonasschnelli/bitcoin,DigitalPandacoin/pandacoin,afk11/bitcoin,ahmedbodi/vertcoin,Flowdalic/bitcoin,Bushstar/UFO-Project,mb300sd/bitcoin,randy-waterhouse/bitcoin,jamesob/bitcoin,Rav3nPL/bitcoin,mruddy/bitcoin,MazaCoin/maza,Flowdalic/bitcoin,dscotese/bitcoin,instagibbs/bitcoin,particl/particl-core,kallewoof/bitcoin,globaltoken/globaltoken,Sjors/bitcoin,alecalve/bitcoin,brandonrobertz/namecoin-core,jamesob/bitcoin,RHavar/bitcoin,Flowdalic/bitcoin,nikkitan/bitcoin,domob1812/bitcoin,jtimon/bitcoin,Xekyo/bitcoin,digibyte/digibyte,globaltoken/globaltoken,prusnak/bitcoin,pstratem/bitcoin,fujicoin/fujicoin,maaku/bitcoin,mm-s/bitcoin,GlobalBoost/GlobalBoost,Rav3nPL/bitcoin,vertcoin/vertcoin,FeatherCoin/Feathercoin,maaku/bitcoin,ElementsProject/elements,ericshawlinux/bitcoin,GroestlCoin/GroestlCoin,Rav3nPL/bitcoin,globaltoken/globaltoken,JeremyRubin/bitcoin,Kogser/bitcoin,nikkitan/bitcoin,stamhe/bitcoin,vertcoin/vertcoin,CryptArc/bitcoin,donaloconnor/bitcoin,MeshCollider/bitcoin,bitcoinknots/bitcoin,jtimon/bitcoin,n1bor/bitcoin,particl/particl-core,JeremyRubin/bitcoin,kallewoof/bitcoin,achow101/bitcoin,monacoinproject/monacoin,jmcorgan/bitcoin,lbryio/lbrycrd,tjps/bitcoin,mruddy/bitcoin,paveljanik/bitcoin,GroestlCoin/bitcoin,ElementsProject/elements,particl/particl-core,bitcoin/bitcoin,ericshawlinux/bitcoin,jnewbery/bitcoin,vmp32k/litecoin,Kogser/bitcoin,ryanofsky/bitcoin,mitchellcash/bitcoin,AkioNak/bitcoin,droark/bitcoin,joshrabinowitz/bitcoin,tecnovert/particl-core,midnightmagic/bitcoin,bitcoinsSG/bitcoin,n1bor/bitcoin,AkioNak/bitcoin,tjps/bitcoin,pataquets/namecoin-core,lateminer/bitcoin,anditto/bitcoin,qtumproject/qtum,monacoinproject/monacoin,particl/particl-core,fujicoin/fujicoin,Bushstar/UFO-Project,rawodb/bitcoin,lateminer/bitcoin,jnewbery/bitcoin,wellenreiter01/Feathercoin,jlopp/statoshi,MeshCollider/bitcoin,digibyte/digibyte,jlopp/statoshi,sipsorcery/bitcoin,sebrandon1/bitcoin,sipsorcery/bitcoin,jtimon/bitcoin,h4x3rotab/BTCGPU,apoelstra/bitcoin,myriadteam/myriadcoin,Flowdalic/bitcoin,GroestlCoin/bitcoin,midnightmagic/bitcoin,laudaa/bitcoin,TheBlueMatt/bitcoin,fujicoin/fujicoin,apoelstra/bitcoin,digibyte/digibyte,ericshawlinux/bitcoin,sebrandon1/bitcoin,sipsorcery/bitcoin,cdecker/bitcoin,namecoin/namecoin-core,ryanofsky/bitcoin,pataquets/namecoin-core,RHavar/bitcoin,tjps/bitcoin,1185/starwels,apoelstra/bitcoin,yenliangl/bitcoin,1185/starwels,bitcoin/bitcoin,Xekyo/bitcoin,myriadteam/myriadcoin,achow101/bitcoin,mb300sd/bitcoin,sebrandon1/bitcoin,randy-waterhouse/bitcoin,lbryio/lbrycrd,lbryio/lbrycrd,mm-s/bitcoin,instagibbs/bitcoin,kazcw/bitcoin,fanquake/bitcoin,namecoin/namecoin-core,kazcw/bitcoin,GlobalBoost/GlobalBoost,OmniLayer/omnicore,bespike/litecoin,lateminer/bitcoin,MarcoFalke/bitcoin,fanquake/bitcoin,RHavar/bitcoin,GlobalBoost/GlobalBoost,GroestlCoin/bitcoin,GroestlCoin/GroestlCoin,BTCGPU/BTCGPU,sstone/bitcoin,sipsorcery/bitcoin,MazaCoin/maza,GlobalBoost/GlobalBoost,apoelstra/bitcoin,OmniLayer/omnicore,deeponion/deeponion,gjhiggins/vcoincore,ajtowns/bitcoin,midnightmagic/bitcoin,instagibbs/bitcoin,OmniLayer/omnicore,namecoin/namecoin-core,mruddy/bitcoin,Rav3nPL/bitcoin,practicalswift/bitcoin,lateminer/bitcoin,andreaskern/bitcoin,andreaskern/bitcoin,fanquake/bitcoin,brandonrobertz/namecoin-core,donaloconnor/bitcoin,Kogser/bitcoin,myriadcoin/myriadcoin,peercoin/peercoin,MarcoFalke/bitcoin,mm-s/bitcoin,1185/starwels,pstratem/bitcoin,h4x3rotab/BTCGPU,tecnovert/particl-core,MeshCollider/bitcoin,ajtowns/bitcoin,litecoin-project/litecoin,qtumproject/qtum,digibyte/digibyte,litecoin-project/litecoin,dscotese/bitcoin,rnicoll/bitcoin,stamhe/bitcoin,rnicoll/bitcoin,ElementsProject/elements,prusnak/bitcoin,Sjors/bitcoin,jamesob/bitcoin,FeatherCoin/Feathercoin,joshrabinowitz/bitcoin,ahmedbodi/vertcoin,joshrabinowitz/bitcoin,fujicoin/fujicoin,BTCGPU/BTCGPU,GroestlCoin/GroestlCoin,tecnovert/particl-core,TheBlueMatt/bitcoin,BTCGPU/BTCGPU,ericshawlinux/bitcoin,rnicoll/dogecoin,deeponion/deeponion,guncoin/guncoin,TheBlueMatt/bitcoin,rnicoll/bitcoin,jonasschnelli/bitcoin,CryptArc/bitcoin,globaltoken/globaltoken,paveljanik/bitcoin,sstone/bitcoin,Kogser/bitcoin,wellenreiter01/Feathercoin,Christewart/bitcoin,bitcoinknots/bitcoin,kallewoof/bitcoin,domob1812/bitcoin,Rav3nPL/bitcoin,fanquake/bitcoin,domob1812/huntercore,jonasschnelli/bitcoin,h4x3rotab/BTCGPU,instagibbs/bitcoin,EthanHeilman/bitcoin,prusnak/bitcoin,mb300sd/bitcoin,r8921039/bitcoin,Sjors/bitcoin,laudaa/bitcoin,sstone/bitcoin,vertcoin/vertcoin,EthanHeilman/bitcoin,thrasher-/litecoin,viacoin/viacoin,litecoin-project/litecoin,jambolo/bitcoin,ElementsProject/elements,rawodb/bitcoin,cdecker/bitcoin,monacoinproject/monacoin,ElementsProject/elements,untrustbank/litecoin,Flowdalic/bitcoin,h4x3rotab/BTCGPU,rawodb/bitcoin,Kogser/bitcoin,qtumproject/qtum,1185/starwels,kazcw/bitcoin,starwels/starwels,GroestlCoin/bitcoin,fanquake/bitcoin,jnewbery/bitcoin,mb300sd/bitcoin,jambolo/bitcoin,thrasher-/litecoin,ryanofsky/bitcoin,dscotese/bitcoin,namecoin/namecore,randy-waterhouse/bitcoin,qtumproject/qtum,donaloconnor/bitcoin,fujicoin/fujicoin,untrustbank/litecoin,CryptArc/bitcoin,bespike/litecoin,rnicoll/dogecoin,peercoin/peercoin,MeshCollider/bitcoin,apoelstra/bitcoin,globaltoken/globaltoken,brandonrobertz/namecoin-core,qtumproject/qtum,BTCGPU/BTCGPU,ahmedbodi/vertcoin,GroestlCoin/bitcoin,jamesob/bitcoin,domob1812/namecore,Sjors/bitcoin,cdecker/bitcoin,mb300sd/bitcoin,r8921039/bitcoin,ahmedbodi/vertcoin,pstratem/bitcoin,digibyte/digibyte,Bushstar/UFO-Project,GroestlCoin/GroestlCoin,1185/starwels,OmniLayer/omnicore,bitcoin/bitcoin,joshrabinowitz/bitcoin,rawodb/bitcoin,r8921039/bitcoin,practicalswift/bitcoin,MarcoFalke/bitcoin,laudaa/bitcoin,afk11/bitcoin,monacoinproject/monacoin,ppcoin/ppcoin,mm-s/bitcoin,kazcw/bitcoin,MeshCollider/bitcoin,peercoin/peercoin,MarcoFalke/bitcoin,instagibbs/bitcoin,andreaskern/bitcoin,myriadteam/myriadcoin,bitcoin/bitcoin,DigitalPandacoin/pandacoin,litecoin-project/litecoin,jlopp/statoshi,thrasher-/litecoin,litecoin-project/litecoin,Kogser/bitcoin,mitchellcash/bitcoin,anditto/bitcoin,domob1812/huntercore,h4x3rotab/BTCGPU,Xekyo/bitcoin,domob1812/huntercore,brandonrobertz/namecoin-core,droark/bitcoin,ahmedbodi/vertcoin,domob1812/namecore,yenliangl/bitcoin,Flowdalic/bitcoin,myriadteam/myriadcoin,namecoin/namecore,ryanofsky/bitcoin,prusnak/bitcoin,rnicoll/dogecoin,viacoin/viacoin,jmcorgan/bitcoin,myriadcoin/myriadcoin,jnewbery/bitcoin,MarcoFalke/bitcoin,Christewart/bitcoin,jlopp/statoshi,JeremyRubin/bitcoin,RHavar/bitcoin,rnicoll/dogecoin,deeponion/deeponion,practicalswift/bitcoin,ajtowns/bitcoin,domob1812/namecore,midnightmagic/bitcoin,rawodb/bitcoin,jlopp/statoshi,paveljanik/bitcoin,viacoin/viacoin,namecoin/namecore,MazaCoin/maza,cdecker/bitcoin,brandonrobertz/namecoin-core,bitcoinsSG/bitcoin,Bushstar/UFO-Project,bitcoinknots/bitcoin,practicalswift/bitcoin,yenliangl/bitcoin,mitchellcash/bitcoin,Xekyo/bitcoin,namecoin/namecoin-core,namecoin/namecore,bespike/litecoin,domob1812/namecore,mm-s/bitcoin,mb300sd/bitcoin,kazcw/bitcoin,guncoin/guncoin,myriadteam/myriadcoin,vmp32k/litecoin,afk11/bitcoin,n1bor/bitcoin,yenliangl/bitcoin,ppcoin/ppcoin,qtumproject/qtum,alecalve/bitcoin,jtimon/bitcoin,vmp32k/litecoin,brandonrobertz/namecoin-core,EthanHeilman/bitcoin,starwels/starwels,monacoinproject/monacoin,ElementsProject/elements,EthanHeilman/bitcoin,droark/bitcoin,Christewart/bitcoin,practicalswift/bitcoin,stamhe/bitcoin,gjhiggins/vcoincore,viacoin/viacoin,untrustbank/litecoin,peercoin/peercoin,achow101/bitcoin,namecoin/namecoin-core,jamesob/bitcoin,dscotese/bitcoin,bitcoin/bitcoin,laudaa/bitcoin,qtumproject/qtum,bitcoinknots/bitcoin,bespike/litecoin,wellenreiter01/Feathercoin,DigitalPandacoin/pandacoin,jmcorgan/bitcoin,AkioNak/bitcoin,anditto/bitcoin,midnightmagic/bitcoin,jmcorgan/bitcoin,paveljanik/bitcoin,jlopp/statoshi,mitchellcash/bitcoin,digibyte/digibyte,RHavar/bitcoin,jonasschnelli/bitcoin,yenliangl/bitcoin,alecalve/bitcoin,lateminer/bitcoin,achow101/bitcoin,bitcoinsSG/bitcoin,bespike/litecoin,stamhe/bitcoin,Kogser/bitcoin,ericshawlinux/bitcoin,CryptArc/bitcoin,joshrabinowitz/bitcoin,GlobalBoost/GlobalBoost,Christewart/bitcoin,ahmedbodi/vertcoin,GroestlCoin/GroestlCoin,domob1812/huntercore,domob1812/bitcoin,ericshawlinux/bitcoin,randy-waterhouse/bitcoin,starwels/starwels,kazcw/bitcoin,Bushstar/UFO-Project,h4x3rotab/BTCGPU,lbryio/lbrycrd,maaku/bitcoin,bitcoinsSG/bitcoin,donaloconnor/bitcoin,sipsorcery/bitcoin,ajtowns/bitcoin,myriadcoin/myriadcoin,mruddy/bitcoin,sebrandon1/bitcoin,gjhiggins/vcoincore,vertcoin/vertcoin,DigitalPandacoin/pandacoin,lateminer/bitcoin,DigitalPandacoin/pandacoin,Kogser/bitcoin,afk11/bitcoin,myriadcoin/myriadcoin,litecoin-project/litecoin,apoelstra/bitcoin,afk11/bitcoin,untrustbank/litecoin,jmcorgan/bitcoin,particl/particl-core,ajtowns/bitcoin,randy-waterhouse/bitcoin,thrasher-/litecoin,stamhe/bitcoin,namecoin/namecoin-core,domob1812/bitcoin,rnicoll/bitcoin