Changed condition variables to WaitForSingleObject

For XP support
Remove dependency on MSVCRxx.dll for libadb

Link to the runtime statically
Added try/catch when checking for ps in PATH
Removed unused variable and cleaned up var names
Simplified mutex-related code in Windows shutdown
Device tracker calls callback instead of sockets
Update for JsMessage API