skip duplicate entries in PluginClassLoader
Load global plugins in their own class loader and replace the base loader with that.  Fixes #272.

Also, replace the base classpath with the global classpath.