Adding gallery.php, organizing website.

Added gallery.php and code to access various variables and constants
from gallery.php

Moved constants and other globals to config.php