Added config login function.

Also added support for additional login modes.
Updated docs for logins.