Single Install

Lots of small changes / refactoring. Biggest functional change was the
change to running all sites off a single install. This is done by
creating PHP constants in /functions/site-constants.php