xhprof production profiling hack

Enable xhprof for specified localhost requests and dump profile to a
text file in /tmp. Tested on mw1114.

Change-Id: I340efd394ab55c68c880553215e90a6104b11fa5