Fix Module loading in Discovery,Gateway and Transport modules

Modules loaded by Discovery, Gateway and Transport modules fail when
loading plugins outside Elasticsearch with isolation enabled. The fix
uses the proper plugin space for class discovery.