Added support for auto globals

Only $GLOBALS works for now; others depend on SAPI