refactored and moved around code, added threading RPC classes
Merge branch 'master' into thread_api
improved tests, fixed bugs
added thread synchronization to ThreadingRPCClient