Refactor plugin install action. Add deleteByName method and extend model for plugin