Improved logout workflow and restyled popover slightly.