Share header across all pages.
Code fixes all-round.
Partial implementation of the login popup.
merge master