Make sure that plugins are loaded before their configuration

supersedes #66
if you don't want the second commit to get in, just cherry-pick smokey42's. I can work around this in my environment like in the second commit, if needed.