config: update to use a list of plugins

The plugins in the config are now in a list of objects.
Each object must have a 'type' value, indicating the plugin
type
supervisor: fix for finding the directory when it is local config file