plugins: store the version of loaded plugins.

for plugin sources that have a useful version number available
(e.g. EntryPoints) this could be used to avoid restoring the state
across plugin versions.