Fixed failure of gacl/setup.php and acl_upgrade.php when called directly and not by setup.
Fixed browser-specific uses of window.back().