Route qDebug() messages to debug.log

Conflicts:
	src/qt/bitcoin.cpp
OutputDebugStringF code cleanup

Initialize the OutputDebugStringF mutex and file pointer using
boost::call_once, to be thread-safe.
Make the return value of OutputDebugStringF really be the number of
characters written (*printf() semantics).
Declare the fReopenDebugLog flag volatile, since it is changed from
a signal handler.
And don't declare OutputDebugStringF() as inline.

Conflicts:
	src/util.cpp
Bitcoin-Qt: Use qDebug() for printing to debug.log

- removes all usages of PrintDebugStringF from Qt code
- ensure same format for all debug.log messages "functionname : Message"

Conflicts:
	src/qt/addresstablemodel.cpp
	src/qt/clientmodel.h
	src/qt/paymentrequestplus.cpp
	src/qt/paymentserver.cpp
	src/qt/transactiontablemodel.cpp
	src/qt/walletmodel.cpp
Bitcoin-Qt: massive header and cpp cleanup

- try to enforce the same style to all Qt related files
- remove unneeded includes from the files
- add missing Q_OBJECT, QT_BEGIN_NAMESPACE / QT_END_NAMESPACE
- prepares for a pull-req to include Qt5 compatibility

Conflicts:
	src/qt/addresstablemodel.cpp
	src/qt/bitcoinamountfield.h
	src/qt/macdockiconhandler.h
	src/qt/optionsmodel.cpp
	src/qt/sendcoinsdialog.cpp
	src/qt/transactionfilterproxy.h
	src/qt/transactionrecord.h
	src/qt/transactiontablemodel.cpp
Qt: small header changes / fixes

- ensure header inclusion guard is named after the header file
- add missing comments at the end of some inclusion guards
- add a small Qt5 compatibility fix in macdockiconhandler.h

Conflicts:
	src/qt/bitcoinamountfield.h
	src/qt/macdockiconhandler.h
Bitcoin-Qt: allow to differentiate Qt log entries from core

- prepend "Bitcoin-Qt" in front of debug.log entries, which come from Qt
- move DebugMessageHandler installation upwards to the event handler
  installation, which fits much better

Conflicts:
	src/qt/bitcoin.cpp
remove printf redefinition from bitcoinrpc.cpp

- as the redefiniton of printf happens in util.h, which is included in
  bitcoinrpc.cpp, we don't need another redefinition

Conflicts:
	src/bitcoinrpc.cpp
Refactor: OutputDebugStringF -> LogPrint(category, ...)

Conflicts:
	src/init.cpp
add InitMessage() to noui and use debug.log for GUI

- this pull adds an InitMessage() function to noui.cpp, which outputs init
  messages to debug.log (this allows to remove some printf() calls from
  init.cpp)
- change InitMessage() in bitcoin.cpp to also write init messages to
  debug.log to ensure nothting is missing in the log because of the
  removal of printf() calls in init.cpp