Bootstrap 3.1.1 and a bunch of fixes

I've manually compared the repo to Bootstrap 3.1.1 and made all the changes necessary to get it up to date. I also fixed a bunch of other minor errors, mostly around things that get lost when the CSS is compiled.