added StreamServer implementation to simulate QBall device operation
1. moved thread-specific declarations from base to derived classes