Partly revamp as Silex SecurityServiceProvider plugin.