Login or Welcome in Header

Numerous big fixes and improvements. Noticeable feature is the modal
popup for user login, registration or lost password recovery (link in
the header navigation bar).