Cleanup code using forward declarations.

Use misc methods of avoiding unnecesary header includes.
Replace int typedefs with int##_t from stdint.h.
Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h.
Normalize QT_VERSION ifs where possible.
Resolve some indirect dependencies as direct ones.
Remove extern declarations from .cpp files.
Merge pull request #2767

51ed9ec Cleanup code using forward declarations. (Brandon Dahler)
Fix struct/class declaration mismatches
Improve logging of failed connections
Refactor: pull alert string sanitization into util
New reject p2p message
Test alerts high at high PROTOCOL_VERSIONs

I regenerated the alert test data; now alerts are tested
against a protocol version way above the current protocol
version.

So we won't have to regenerate them every time we bump
PROTOCOL_VERSION in the future.
Bump protocol version to 70002
Merge pull request #3185 from gavinandresen/reject

Reject p2p message