HHVM support

The main idea is to create full capability with HHVM. 
HHVM gives much better performance for metrics calculation.
What should be done:
- [x] PHPUnit 4 migration
- [ ] Test fixes