build,test: improve test-env (plugins)
lib: expose function `Plugin.load_plugins`
lib: automatically load plugins

As a side-effect, this also makes configuration loading more sane for
the server's potential daemonization; even though it's loaded twice.