xhprof support, application name fix, BASE_PATH fix

Hi here's few small improvements