Fixing Alias in Gear.php and issues in $_SERVER['PHP_SELF'] usage in Uri Resource

>> Fixing Alias in Gear.php

>> Some server return $_SERVER['PHP_SELF'] value with incomplete uri that needed by $this->pathUri variable in Resource/Uri.
Fix it by adopting CI core URI

>> Auto Formating and styling Resource/Uri.php