Avoid hard-coding URLs
Logout
Get base URL from configuration
Request-global state struct
Message flashing for login/logout