Fixes numerous bugs including:
- Thread related issues.
- Wrong timing of queries.
- Only one instance of the server / client is allowed to run at a time on the same machine.
- Query counts not updating correctly.
- Network code made a little more efficient by sending query results from the client to the server in batches of five.
- Overall memory consumption lowered significantly in the Server.