Use a PHP template for pages

I rewrote much of the code, had to rename all of the pages using the PHP file extension, restructured the folders to be more future proof, and fixed the actual HTML code as it contained errors. It should now be easy to add new pages and links in the navbar and the footer.