timeToFirstByte: fix #298

* move to a separate core module
Load timeToFirstByte core module
Update metrics metadata
Merge pull request #299 from macbre/ttfb-fix-298

timeToFirstByte: fix race condition