Modify calculation formula and a bit of clean up

Modifying the calculation formula to take into account blacklisted tests as failures.

Reviewed By: @ptarjan

Differential Revision: D1048288
More improvements to the test framework for job queue

- simulate random arrival of events.
- keep track of request queue time and wall time for each request.
- keep track of the max queue time and max load.
- added ability to add a padding to the time to simulate random delays.
- compute various statistics for queuing time and wall time.

Reviewed By: rkroll

Differential Revision: D1044762
Fixing OSX build.

This is an internal part of the fix that allows HHVM to compile
under OS X.

Reviewed By: @scannell

Differential Revision: D1048727
correct undoing xhp name mangling in type_annotation

... this code should be the inverse of
 ScannerToken::xhpLabel.

Reviewed By: @dariorussi

Differential Revision: D1039358
Move back to a fgets model and clean up test analyzing a bit

Since we determined that fgetc didn't solve deadlocking, and we just blacklisted those tests instead, we go back to fgets.

Also, clean up the way we analyze tests and their statuses.

PEAR is flaky. I don't think it is any atomicity or overwrite problem with the script. I think it might be the fact that we are running these things with separate processes. Or the tests are flaky. Either way we need a serial mode.

Reviewed By: @ptarjan

Differential Revision: D1049044
reflection: better tests for xhp reflection

... and expect file built from correct branch this time.

Reviewed By: @scannell

Differential Revision: D1049263
Have ElemDObject treat ArrayObject like an array

Corrects the case when a SetM is performed on an ArrayObject
that holds an array with a ref count of 1.

Reviewed By: @ptarjan

Differential Revision: D1048713
Move warning in gc_collect_cycles() under HHSyntax

Was causing tests to fail in Magento2

Reviewed By: @scannell

Differential Revision: D1048980