Split index.php to separate files for each main view
Generate photo page URL in Photo class
Populate $ThisScript variable with galleries base URL
Use photo class for generating navigation links in head