Remove tx from AlreadyAskedFor list once we receive it, not when we process it.

Conflicts:
	src/main.cpp
Introduce script verification flags

Conflicts:
	src/main.cpp
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