Fix bug found by Stephen which would trigger an infinite loop when reading a 0-length file.
Remove state.cpp from UG; merged with syndicate.cpp (and refactor syndicate.cpp, client.cpp, and UG binaries).
Fix bug where libsyndicate would return success on registering with the wrong Volume.