Pools are now threaded, initialization of server is lot faster now.
Improved handling of markets - closes #671.