Updated the HTML and CSS

I've updated the HTML in the various files to match the new design, and I also did some small refactoring as I went along to try and separate the HTML from the PHP a bit more (maybe see if we can get more of a MVC pattern implemented and all that).