Remove copies of ThreadContextClassLoader
Set context class loader when creating connectors

The default context class loader for the main thread is the application
class loader, which is never correct for plugins to use.
Cap maximum number of remote task callback threads