Updated config file to use framework in local environment not in root.
Fixed some preg_match delimiter issues
setup the index.php file to handle the function for including pages
added a 404 file as this always needs to be active in each theme for better handling 404