Massive code update.

Fixed some terrible novice HTML and PHP code, and added CSS
styling for some pages.