Move internal miner functionality together
Re-enable miner tests in --disable-wallet mode

Use a fixed script instead of a CReserveKey from the wallet.
This does not affect the functionality or result of the tests as they never
check the state of the wallet in the first place.

Conflicts:
	src/test/Makefile.am
some string and indentation updates in init/rpcclient

Conflicts:
	src/init.cpp
cleanup includes in rpcnet.cpp
[Qt] misc small Mac related changes/cleanups

- cleanup Info.plist.in and specify high DPI mode enable command as per
  http://blog.qt.digia.com/blog/2013/04/25/retina-display-support-for-mac-os-ios-and-x11/
- move setting of QApplication::setAttribute() to bitcoin.cpp and add
  attribute for enabling use of high DPI pixmaps for Qt >= 5.1
- add missing setWindowTitle() on Mac
- cleanup Mac / non-Mac setup in bitcoingui.cpp

Conflicts:
	share/qt/Info.plist.in
	src/qt/bitcoingui.cpp
rpcwallet: use EnsureWalletIsUnlocked() where possible

- replaces a pwalletMain->IsLocked() check
- in keypoolrefill init kpSize to 0 as we have the logic to determine max
  kpSize in pwalletMain->TopUpKeyPool() anyway
Fix infinite loop with LogPrint on Windows

Running -printtodebugger -debug (or -debug=lock),
compiled with -DDEBUG_LOCKORDER would infinite loop
on Windows because every critical section lock/unlock
triggers a LogPrint.

Solution is to use the raw boost mutex instead of a CCriticalSection.
Use thread-local storage for LogPrint(category...)

This prevents crashes at shutdown where a global destructor
calls LogPrint(category...) after mapMultiArgs has been
deleted.
Add protobuf-compiler dependency package for debian

Fixes #3361
[Qt] add messages when handling local payment request files

- important for the open URI dialog to give users feedback
  when a file is invalid etc.
Add tests for correct and incorrect order of signatures for a multisig
(P2SH)
Update build-osx.md
Conflicts:
	doc/build-osx.md
[Qt] fix possibilty to delete last sendcoins entry

- hide the entry about to be deleted, and if it is the last entry add a
  new one, so that we always have one entry in our list
[Qt] fix RecentRequestsTableModel function ambiuguity

- fixes a compiler ambiguity error with ::createIndex() called in
  RecentRequestsTableModel::index()
- also add some Q_UNUSED() macros
build: fix syntax error on older m4/autoconf.

Fixes #3358. This affects preinstalled autotools on osx 10.6.
Use 'make check' instead of 'make test'
build: fix detection of boost libs on multi-arch distros

Fixes #3219.
docs: remove workaround instructions now that the problem is fixed
update help for -blockmaxsize and blockprioritysize

- was left out in #3326
fixed documetation on hardening flags