Add linkgenerator.php, class used to generate links

The class used to generate links. The only relative link you need in your files is the one to get to linkgenerator.php, and LinkGenerator will handle the rest of your links.