cleaned up semaphore.fs yet again.
adjusted cadmium server and test client code.