Login menu

This adds a login menu to the gui header.
Any ideas why the window.flags might not be getting picked up in the test? I don't remember having to do anything else in other tests.