Added support for token based authentication supported via a plugin mechanism.