Cleanup: Moved the Plugin resolution into the plugin repository class, fixed line endings