Merge pull request #817 from TheBlueMatt/dpiversionfix

Get ext. IP from UPnP, make sure addrMe IsRoutable() in version.
Fix #822
Get ext. IP from UPnP, make sure addrMe IsRoutable() in version.

This fixes a potential bug where some NATs may replace the node's
interal IP with its external IP in version messages, causing
incorrect checksums when version messages begin being checksummed
on February 14, 2012.
Merge branch '0.4.x' into 0.5.0.x
Merge branch '0.5.0.x' into 0.5.x
Merge pull request #826 from laanwj/2012_02_fixminimizetotray

Fix Minimize to the tray instead of the taskbar (rework)
Add export action to file menu (as long as we have a file menu, export certainly should be there)
Merge pull request #807 from TheBlueMatt/bip21

Add req- prefixes to comply with BIP21.
Enable accessible widgets Qt module on win32, so that people with screen readers such as NVDA can make sense of it.
(trivial) regularize coding style
Added 'Backup Wallet' menu option

- icon from the LGPL Nuvola set (like the tick) - http://www.icon-king.com/projects/nuvola/
- include 'boost/version.hpp' in db.cpp so that the overwrite version of copy can be used
- catch exceptions in BackupWallet (e.g. filesystem_error thrown when trying to overwrite without the overwrite flag set)
- include db.h in walletmodel.cpp for BackupWallet function
- updated doc/assets-attribution.txt and contrib/debian/copyright with copyright info for new icon
increase BitcoinAddressValidator::MaxAddressLength from 34 to 35

needed for sending BIP16 transactions on test network through GUI
fix default suffixes in save dialog in GNOME, make it more clear that PNG is used (solves #833)
Bugfix: do not create CAddress for invalid accepts
Several shutdown-related fixes

* do not let vnThreadsRunning[1] go negative
* do not perform locking operations while vnThreadsRunning[1] is decreased
* check vnThreadsRunning[1] at exit
Fix compilation warning.
Make bitcoin-qt static-link libqrcode and add it for debian pkgs.
Properly include $*_LIB_PATH in makefile.unix
PPCoin: fix a hang during reorg (bug introduced in coinstake)
        fix a condition for coinstake in ReacceptWalletTransaction
        some minor cleanups
Merge pull request #828 from sipa/fixwalletlock

Fix wallet locking locking