Reformat plugins array and allow filtering of plugin packages