Refactored plugin loading.

Refactored PluginManager.
Added downloading of remote plugin on instance creation.