process received messages one at a time without sleeping between messages
Fix comparison tool by asking for blocks more aggressively

Rebased-from: b33b9a6fefbe832bf45a6c7717d0537f27597bff
Fix uninitialized variable added in 5c55bf5

After discussing with BlueMatt, this appears to be harmless in its
current state since it's always set before it's used. Initialize it
anyway for readability and future safety.

Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
Rebased-From: 106f133de6bdb577c4135847fd703d08f525ba46
log start and end of Shutdown()

- could be helpful when debugging shutdown related problems

Rebased-by:   Warren Togami <wtogami@gmail.com>
Rebased-from: ced3c248168941fbbd42d5a3807657a88be6a54e
Log reason for non-standard transaction rejection

Conflicts:
	src/main.cpp

Rebased-from: cb3076a3daa68eebf19c681ab48a0c0d9f0ce7a5
make -logtimestamps default on and rework help-message

Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
Rebased-From: 959e62f
More fixes for blockchain corruption on OSX.

As we'd previously learned, OSX's fsync is a data eating lie.

Since 0.8.4 we're still getting some reports of disk corruption on
 OSX but now all of it looks like the block files have gotten out of
 sync with the database. It turns out that we were still using fsync()
 on the block files, so this isn't surprising.
Hurricane Electric uses block 2001:470::, not 2011:470::
Porting MinGW multithreading bugfix to makefile.mingw

Original fix:
https://github.com/bitcoin/bitcoin/commit
/8864019f6d88b13d3442843d9e6ebeb8dd938831
exclude CreatePidFile() function on WIN32 as it is unused
Fix build date for from-tarball builds
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.

Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
Bump version numbers for 0.8.6 release
Squashed 'src/leveldb/' changes from be1b0ff..be91006

936b461 Merge upstream LevelDB 1.13.
748539c LevelDB 1.13

git-subtree-dir: src/leveldb
git-subtree-split: be9100673b05cec1662a54d0b7a59e4317fdda86
Silence useless warning in src/json/json_spirit_writer_template.h to make important warnings easier to see.

warning: typedef ‘Char_type’ locally defined but not used [-Wunused-local-typedefs]
Refactor: pull alert string sanitization into util

Rebased-from: 17faf562629cd27f00fc138e218ebcc1ce071765
special case DoS value == 0 in ProcessMessage()

- prevents unneeded log messages, which could make users think something
  bad was happening

Squashed: style-police code cleanup
Add some additional logging to give extra network insight.
Store and use a sanitized subVer

Rebased-from: a946aa8d3ec7009ac670eeb65a525efe5eeb6e84
Increase default -blockmaxsize/prioritysize to 300K/30K