Truncate oversize 'tx' messages before relaying/storing.

Fixes a memory exhaustion attack on low-memory peers.
Dump addresses every 15 minutes instead of 10 seconds
Bump version numbers for 0.8.3 release
Explictly cast calculation to int, to allow std::max to work.
fix memory leak in CKey::SetCompactSignature()
Fix memory leak on exception in Key::SignCompact
listreceivedbyaddress now provides tx ids (issue #1149)
Updated help and tests for getreceivedby(account|address)
Make CPubKey statically allocated
CSecret/CKey -> CKey/CPubKey split/refactor
Make signature cache store CPubKeys
Check for correct genesis

At startup, check that the expected genesis is loaded. This should prevent
cases where accidentally a datadir from the wrong network is loaded
(testnet vs mainnet, e.g.).
Don't attempt to resize vector to negative size.
osx: make use of the 10.8+ user notification center to display growl like notifications

- if 10.8, use user notification center, if <10.8, use growl

Signed-off-by: Jonas Schnelli <jonas.schnelli@include7.ch>
remove obsolete and unused typedef for Windows
Added NSHighResolutionCapable flag to Info.plist for better font rendering on Retina displays.
MaxOSX: settings fixes (#2371)

    - Launch-At-Startup implementation for mac
    - Remove "Window" tab in settings

    Signed-off-by: Jonas Schnelli <jonas.schnelli@include7.ch>
Qt5 compatibility

This commit squashes all the changes in the Qt5 branch
relative to master.

Backward compatibility with Qt4 is retained.

Original authors:

- Philip Kaufmann <phil.kaufmann@t-online.de>
- Jonas Schnelli <jonas.schnelli@include7.ch>
osx: fix bitcoin-qt startup crash when clicking dock icon

Crash probably introduced by 4d17a1b0.
Inialize the window to NULL and verify it before use.
allow txindex to be removed and add a reindex dialog

- adds a reindex dialog for Bitcoin-Qt to change -txindex without the need
  to supply -reindex
- now also does a -reindex, when removing the -txindex switch