Add some autoloading php and declare some global variables