Refactor xdebug and xhprof to allow on/off state. Off state is good for performance.