Completed State Server

The State Server is now functionally complete (according to the documentation) and passes all tests. At this time, I feel it's best to merge it down into master and close the feature branch.

Note: We still have to stress-test this thing, to verify that it performs well, does not crash, and does not leak memory. Therefore, do not close issue #25 yet.

**Before merging, please make sure the code compiles without warnings and passes all test_stateserver.py tests.**
Everything is good on my system, but I haven't tried any of this on other Linux distros or Windows.