Merge pull request #574 from nomis52/master

Clean up signal handling a bit.
- Some changes to support Windows threading
Merge remote-tracking branch 'remotes/upstream/master'

Conflicts:
	common/thread/Utils.cpp
- Small Windows compilation fixes
Merge pull request #576 from lukase/master

Windows build fixes
- Workaround for the HTTP server taking too long to respond on Windows
Make LINT happy
Use name in TODO comment
Merge pull request #577 from lukase/master

Windows HTTP timeout workaround