On client shutdown write directly into "peers.dat"...
On client shutdown write directly into "peers.dat"...

...and not into a temporary file which gets renamed to "peers.dat" later.
This prevents softlinks from being replaced by a "real" file, see http://jira.darkcoin.qa/browse/DRK-122

Update of https://github.com/darkcoin/darkcoin/pull/63 to the new Bitcoin codebase.
cryptodev35/icash,alejandromgk/Lunar,slingcoin/sling-market,CoinProjects/AmsterdamCoin-v4,biblepay/biblepay,xuyangcn/opalcoin,grumpydevelop/singularity,dashpay/dash,nightlydash/darkcoin,blood2/bloodcoin-0.9,ahmedbodi/test2,putinclassic/putic,freelion93/mtucicoin,rdqw/sscoin,ColossusCoinXT/ColossusCoinXT,PandaPayProject/PandaPay,dmrtsvetkov/flowercoin,ticclassic/ic,antcheck/antcoin,Mrs-X/Darknet,Petr-Economissa/gvidon,ivansib/sib16,puticcoin/putic,axelxod/braincoin,Bloom-Project/Bloom,biblepay/biblepay,UdjinM6/dash,BlockchainTechLLC/3dcoin,mobicoins/mobicoin-core,cryptodev35/icash,crowning-/dash,rdqw/sscoin,ahmedbodi/test2,freelion93/mtucicoin,pinkevich/dash,blood2/bloodcoin-0.9,Mrs-X/Darknet,world-bank/unpay-core,ticclassic/ic,willwray/dash,knolza/gamblr,Mrs-X/PIVX,dev1972/Satellitecoin,PandaPayProject/PandaPay,diggcoin/diggcoin,kbccoin/kbc,pelorusjack/BlockDX,keesdewit82/LasVegasCoin,dmrtsvetkov/flowercoin,LIMXTEC/DMDv3,aspirecoin/aspire,inkvisit/sarmacoins,xuyangcn/opalcoin,keesdewit82/LasVegasCoin,rsdevgun16e/energi,Mrs-X/PIVX,crowning2/dash,PIVX-Project/PIVX,PIVX-Project/PIVX,nightlydash/darkcoin,Petr-Economissa/gvidon,midnight-miner/LasVegasCoin,keesdewit82/LasVegasCoin,keesdewit82/LasVegasCoin,presstab/PIVX,crowning-/dash,world-bank/unpay-core,PandaPayProject/PandaPay,Vsync-project/Vsync,crowning2/dash,terracoin/terracoin,putinclassic/putic,ionomy/ion,cryptodev35/icash,ediston/energi,BlockchainTechLLC/3dcoin,dev1972/Satellitecoin,basicincome/unpcoin-core,Darknet-Crypto/Darknet,PIVX-Project/PIVX,PIVX-Project/PIVX,jmgilbert2/energi,LIMXTEC/DMDv3,benzmuircroft/REWIRE.io,puticcoin/putic,inkvisit/sarmacoins,ticclassic/ic,blood2/bloodcoin-0.9,coinkeeper/2015-06-22_18-36_darkcoin,worldbit/worldbit,ArgonToken/ArgonToken,blood2/bloodcoin-0.9,DMDcoin/Diamond,crowning-/dash,ediston/energi,mobicoins/mobicoin-core,thelazier/dash,PandaPayProject/PandaPay,ediston/energi,cerebrus29301/crowncoin,dev1972/Satellitecoin,npccoin/npccoin,ColossusCoinXT/ColossusCoinXT,npccoin/npccoin,puticcoin/putic,rsdevgun16e/energi,slingcoin/sling-market,grumpydevelop/singularity,pinkevich/dash,ahmedbodi/test2,DMDcoin/Diamond,grumpydevelop/singularity,rdqw/sscoin,ArgonToken/ArgonToken,axelxod/braincoin,nightlydash/darkcoin,dashpay/dash,nightlydash/darkcoin,coinkeeper/2015-06-22_18-36_darkcoin,DMDcoin/Diamond,npccoin/npccoin,cerebrus29301/crowncoin,ivansib/sibcoin,antcheck/antcoin,ahmedbodi/test2,axelxod/braincoin,rdqw/sscoin,diggcoin/diggcoin,lakepay/lake,DMDcoin/Diamond,presstab/PIVX,biblepay/biblepay,nmarley/dash,projectinterzone/ITZ,jmgilbert2/energi,aspirecoin/aspire,Bloom-Project/Bloom,ticclassic/ic,ticclassic/ic,antcheck/antcoin,alejandromgk/Lunar,puticcoin/putic,alejandromgk/Lunar,diggcoin/diggcoin,slingcoin/sling-market,benzmuircroft/REWIRE.io,biblepay/biblepay,worldbit/worldbit,Mrs-X/Darknet,ahmedbodi/test2,slingcoin/sling-market,UdjinM6/dash,willwray/dash,mobicoins/mobicoin-core,Mrs-X/PIVX,BlockchainTechLLC/3dcoin,dmrtsvetkov/flowercoin,DMDcoin/Diamond,rsdevgun16e/energi,nmarley/dash,48thct2jtnf/P,Darknet-Crypto/Darknet,axelxod/braincoin,dashpay/dash,Darknet-Crypto/Darknet,ColossusCoinXT/ColossusCoinXT,alejandromgk/Lunar,LIMXTEC/DMDv3,Darknet-Crypto/Darknet,kbccoin/kbc,npccoin/npccoin,mycointest/owncoin,inkvisit/sarmacoins,alejandromgk/Lunar,cerebrus29301/crowncoin,freelion93/mtucicoin,PIVX-Project/PIVX,freelion93/mtucicoin,aspirecoin/aspire,projectinterzone/ITZ,lakepay/lake,mobicoins/mobicoin-core,benzmuircroft/REWIRE.io,pelorusjack/BlockDX,knolza/gamblr,CoinProjects/AmsterdamCoin-v4,PIVX-Project/PIVX,schinzelh/dash,CoinProjects/AmsterdamCoin-v4,RyanLucchese/energi,ticclassic/ic,48thct2jtnf/P,pelorusjack/BlockDX,BlockchainTechLLC/3dcoin,keesdewit82/LasVegasCoin,nmarley/dash,Mrs-X/Darknet,kbccoin/kbc,grumpydevelop/singularity,RyanLucchese/energi,projectinterzone/ITZ,pinkevich/dash,putinclassic/putic,slingcoin/sling-market,world-bank/unpay-core,ediston/energi,grumpydevelop/singularity,pelorusjack/BlockDX,RyanLucchese/energi,schinzelh/dash,jmgilbert2/energi,aspirecoin/aspire,putinclassic/putic,48thct2jtnf/P,biblepay/biblepay,lakepay/lake,npccoin/npccoin,terracoin/terracoin,keesdewit82/LasVegasCoin,projectinterzone/ITZ,nmarley/dash,rdqw/sscoin,putinclassic/putic,HeliumGas/helium,dev1972/Satellitecoin,ArgonToken/ArgonToken,coinkeeper/2015-06-22_18-36_darkcoin,terracoin/terracoin,ionomy/ion,antcheck/antcoin,ivansib/sib16,dmrtsvetkov/flowercoin,schinzelh/dash,schinzelh/dash,freelion93/mtucicoin,thelazier/dash,ivansib/sib16,ArgonToken/ArgonToken,pelorusjack/BlockDX,willwray/dash,axelxod/braincoin,dmrtsvetkov/flowercoin,DMDcoin/Diamond,BlockchainTechLLC/3dcoin,crowning2/dash,coinkeeper/2015-06-22_18-36_darkcoin,UdjinM6/dash,alejandromgk/Lunar,RyanLucchese/energi,dashpay/dash,basicincome/unpcoin-core,midnight-miner/LasVegasCoin,Bloom-Project/Bloom,puticcoin/putic,thelazier/dash,rsdevgun16e/energi,pinkevich/dash,Vsync-project/Vsync,benzmuircroft/REWIRE.io,HeliumGas/helium,Bloom-Project/Bloom,HeliumGas/helium,CoinProjects/AmsterdamCoin-v4,antcheck/antcoin,mycointest/owncoin,jmgilbert2/energi,ivansib/sibcoin,RyanLucchese/energi,diggcoin/diggcoin,inkvisit/sarmacoins,ivansib/sib16,slingcoin/sling-market,biblepay/biblepay,ionomy/ion,worldbit/worldbit,midnight-miner/LasVegasCoin,lakepay/lake,ArgonToken/ArgonToken,Vsync-project/Vsync,dmrtsvetkov/flowercoin,xuyangcn/opalcoin,rsdevgun16e/energi,ColossusCoinXT/ColossusCoinXT,putinclassic/putic,benzmuircroft/REWIRE.io,cerebrus29301/crowncoin,PIVX-Project/PIVX,thelazier/dash,xuyangcn/opalcoin,ahmedbodi/test2,PIVX-Project/PIVX,Petr-Economissa/gvidon,terracoin/terracoin,ivansib/sibcoin,pinkevich/dash,CoinProjects/AmsterdamCoin-v4,aspirecoin/aspire,ionomy/ion,Petr-Economissa/gvidon,ivansib/sib16,LIMXTEC/DMDv3,cryptodev35/icash,Vsync-project/Vsync,UdjinM6/dash,world-bank/unpay-core,basicincome/unpcoin-core,midnight-miner/LasVegasCoin,kbccoin/kbc,Petr-Economissa/gvidon,ionomy/ion,antcheck/antcoin,xuyangcn/opalcoin,dev1972/Satellitecoin,mobicoins/mobicoin-core,Mrs-X/PIVX,midnight-miner/LasVegasCoin,BlockchainTechLLC/3dcoin,mycointest/owncoin,presstab/PIVX,diggcoin/diggcoin,nightlydash/darkcoin,HeliumGas/helium,world-bank/unpay-core,Mrs-X/Darknet,knolza/gamblr,midnight-miner/LasVegasCoin,cerebrus29301/crowncoin,grumpydevelop/singularity,inkvisit/sarmacoins,lakepay/lake,basicincome/unpcoin-core,ivansib/sibcoin,presstab/PIVX,thelazier/dash,ivansib/sibcoin,Bloom-Project/Bloom,axelxod/braincoin,crowning-/dash,RyanLucchese/energi,puticcoin/putic,ediston/energi,ColossusCoinXT/ColossusCoinXT,LIMXTEC/DMDv3,nmarley/dash,PandaPayProject/PandaPay,blood2/bloodcoin-0.9,ediston/energi,cerebrus29301/crowncoin,knolza/gamblr,ionomy/ion,lakepay/lake,ivansib/sibcoin,willwray/dash,LIMXTEC/DMDv3,jmgilbert2/energi,terracoin/terracoin,dashpay/dash,worldbit/worldbit,cryptodev35/icash,PIVX-Project/PIVX,inkvisit/sarmacoins,benzmuircroft/REWIRE.io,crowning-/dash,ArgonToken/ArgonToken,HeliumGas/helium,knolza/gamblr,biblepay/biblepay,nmarley/dash,UdjinM6/dash,Bloom-Project/Bloom,willwray/dash,worldbit/worldbit,schinzelh/dash,aspirecoin/aspire,diggcoin/diggcoin,jmgilbert2/energi,nmarley/dash,terracoin/terracoin,PandaPayProject/PandaPay,Darknet-Crypto/Darknet,biblepay/biblepay,kbccoin/kbc,Mrs-X/Darknet,crowning2/dash,mycointest/owncoin,mycointest/owncoin,crowning-/dash,rdqw/sscoin,npccoin/npccoin,Vsync-project/Vsync,pinkevich/dash,ColossusCoinXT/ColossusCoinXT,48thct2jtnf/P,48thct2jtnf/P,Vsync-project/Vsync,Mrs-X/PIVX,basicincome/unpcoin-core,mycointest/owncoin,schinzelh/dash,crowning2/dash,rsdevgun16e/energi,knolza/gamblr,dev1972/Satellitecoin,presstab/PIVX,HeliumGas/helium,Petr-Economissa/gvidon,projectinterzone/ITZ,xuyangcn/opalcoin,willwray/dash,Mrs-X/PIVX,freelion93/mtucicoin,Darknet-Crypto/Darknet,CoinProjects/AmsterdamCoin-v4,pelorusjack/BlockDX,coinkeeper/2015-06-22_18-36_darkcoin,48thct2jtnf/P,ivansib/sib16,worldbit/worldbit,presstab/PIVX