Introduce config option to enable/disable authentication.

- Defaults to off in this branch.