Use a page templating system instead of repeated html with minor changes

Refactored the website to allow for more dynamic page content whilst still retaining the current site content.
* Uses a simple routing system instead of rules.php, modes.php etc.
* Move page markdown files to their own directory
* Reformatted PHP with PHPStorm