Added threaded connections
Fixed a couple of things.
Merge branch 'thread-pool' into serbian-version