Added object metadata for Plugins, use WeakMap on perms
Make PluginBase::getResource() return a file pointer instead of the file contents