Add some support for readline.

Summary: I think it would be nice to move parts of hphpd over to PHP-land, and having readline available would help with that.

Reviewed By: @ptarjan

Differential Revision: D1538831
Attempt to fix t5058784

Summary: Avoid a possible race condition with static properties

Reviewed By: @markw65

Differential Revision: D1547427
Fix cmake jemalloc check

Summary: Escaped backslashes or it will fail with "unexpected CAL_symbol, expecting $end"
See 28108aeb
Closes https://github.com/facebook/hhvm/pull/3716

Reviewed By: @sgolemon

Differential Revision: D1547302
Remove some modifications in tests from import_zend_test.py

Summary: These are all invalid now.
Closes https://github.com/facebook/hhvm/pull/3717

Reviewed By: @sgolemon

Differential Revision: D1547305
Capture entire interim work on hhvm tree.
This contains speculative and potentially incorrect work.

Don't echo json from hotprofiler return if are using External profiler.
Have hphp/test/run use the flags to run NewRelic profiler.

Don't compile for profiling.  The newrelic.so can be compiled for profiling.

update third-party
don't force the number of cores to 1.  Do this from the command line viz:
  --threads 1
iff running a gcov'ed binary.
Capture interim work.

Attempt to generate a function return prehook point,
but those attempts fail due to a malformed CFG.