[FIX] BASE_PATH

BASE_PATH is wrong if framework directory is linked to the root of the
website
[FEATURE] xhprof support
[FIX] Application name fix