Make navbar collapse on smaller screens

This has some issues.

1. Clicking log out does not close the menu.  This is, presumably because the event linking isn't performed since the Log Out link is not there when the header is first created.

2. Though it doesn't collapse until necessary to prevent two lines of menu, it still seems too soon to me.  This can be the first step on our way to a progressive collapsing, though.