Autoload now working but code needs to be restructured to single entry point for web requests