Detect if a user is logged in by checking a class on the body element.
Configure regions and messages.
Allow using Selenium in tests.