Make tests run on Windows

This uses CMake to run tests on Windows. Some minor code fixes were
needed in the main test body to eliminate a flood of warnings from MSVC.

- The server.c "initializer" was modified to be win32 compatible.
  Specifically #defines were put for sleep, usleep, closesocket. Windows
  will use CreateProcess.

- timeout.c uses CreateTimerQueueTimer for its timeout functions

- Still need to configure paths correctly as CMake does an
  "out-of-source" build, so I need to allow the main program to find the
  jar more intelligently

Change-Id: I23d3c19cdf3fee7852beffebeae2303c5d20f441
Reviewed-on: http://review.couchbase.org/27526
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>