More responsive header

Currently the header unnecessarily uses a table for layout purposes. This breaks the experience on mobile devices.

I've changed it to use floated divs, and slightly changed the way the DOM is laid out to better provide for button groups.