Supporting multiple auth backends.

Fixes #191.