APP_URI global const replaced with more friendly BASE_URL which will
contain executed script name (/index.php/) in case mod_rewrite is disabled