Fix bug in preparing OpenBet requests.

Add unit test project for testing the service DLL directly.