CB-6469 - Restore plugins from config.xml

Adds a save command to save the state of the installed plugins. Changes prepare so that config.xml is read and any missing plugins are installed. Adds some tests for the new features