More cleanup to base.html

Strip redundant parts of the HTML, and fix links (mainly to use HTTPS versions of links).