Update index.php

Massive revisions including how to derive VirtualPath, location aware, preparation for modules, prepped for removing code from framework class.