Bugfix: Windows lacks sleep(), so need to use Sleep() from util.h
Merge branch '0.5.0.x' into 0.5.x
PPCoin: Protocol rule to match coinbase and coinstake scriptPubKey
Use scoped locks instead of CRITICAL_BLOCK
Support for parametrized locks in deadlock detector
Do not report spurious deadlocks caused by TRY_LOCK
Merge branch 'filesystem' of https://github.com/Diapolo/bitcoin
Added comment lines in French & Turkish which basically mean "Bitcoin, virtual P2P cryptocurrency".
Merge pull request #1052 from sipa/scopedlocks

Use scoped locks instead of CRITICAL_BLOCK
Merge pull request #1070 from cardpuncher/patch-1

Trivial: added comment lines in French & Turkish
Toggle main window hide on tray icon click

- converted openBictoinAction to toggleHideAction
- put GUIUtil functions into a namespace instead of a class
- put window-related functions together in optionsdialog

Reasoning:
- toggle is more typical behaviour
- it's more functional
- better UX

The typical issue with toggling visibility is that when a window
is obscured by other windows but in the 'shown' state, hiding it
isn't what you want. I've added an 'isObscured' function to GUIUtil
that checks several pixels in the window to see if they are visible
on the desktop so that an obscured but shown window can be raised.

Conflicts:

	src/qt/guiutil.cpp
	src/qt/guiutil.h
Build identification strings

All client version information is moved to version.cpp, which optionally
(-DHAVE_BUILD_INFO) includes build.h. build.h is automatically generated
on supporting platforms via contrib/genbuild.sh, using git describe.

The git export-subst attribute is used to put the commit id statically
in version.cpp inside generated archives, and this value is used if no
build.h is present.

The gitian descriptors are modified to use git archive instead of a
copy, to create the src/ directory in the output. This way,
src/src/version.cpp will contain the static commit id. To prevent
gitian builds from getting the "-dirty" marker in their git-describe
generated identifiers, no touching of files or running sed on the
makefile is performed anymore. This does not seem to influence
determinism.
Merge pull request #1046 from laanwj/2012_04_rpcporterror

Show error message instead of exception crash when unable to bind RPC port
Merge pull request #1054 from sipa/buildinfo

Build identification strings
Force regeneration of build.h in qmake builds
Fix build.h dependencies

For Qt builds, the build.h file is moved to build/build.h. For regular
builds, it is moved to obj/build.h. This allows the Qt build to be done
in a different directory than the source, and without interfering with
other builds.
Merge pull request #1077 from sipa/buildinfo

Fix build.h dependencies
by popular request, make 4th bar of connection icon green
Remove path.make_preferred() calls, and fix compiler error in bitcoinrpc RE: boost::system
Merge pull request #1083 from laanwj/2012_04_connectionicon

Make 4th bar of connection icon green