Added priorities when loading plugins.
Merge branch 'plugin-priority' into devel