Modularize openid plugin

Allow the plugin to be distributed inside other plugins and allow extending code to disable some parts of the openid plugin