ts-jitterbuffer: add dedicated functions for state transitions + tests
Tests are based on the pipeline in #93 (closed). One of the tests uses the pipeline from the issue, the other also includes a ts-queue so as to check the behavior with a PadContext
.
fixes #95 (closed)