Removed getcwd search on every page load

We now statically store an array of all available pages in the
configuration file for added security. Removed the getcwd to make site
load faster. Another suggestion by user scotchfield