Fix bad HTML in base_content.html.

Also move the google analytics code to where it needs to be.