Switched to using TThreadPoolServer, which performs marginally better.
Deleted StateStore cruft and fixed compile errors in tests.

The tests still fail due to changes in various abstractions,
but they do now compile.

This commit deletes the StateStore and code associated with it
that was no longer functional.