Fix broken buffer delay estimation when pts is unset

Fixes #2212
Fix use after free (buf_t) in subtitles
ecmascript: Make page.loading work

Fixes #2195
net: Improve TCP and HTTP debug

refs #2211