api: don't make the plugin a Singleton

This doesn't work with the jruby lifecycle in Kill Bill (which calls
new explicitly). Instead, extract the configuration logic into a
separate class, which can be a Singleton.

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>