Fixes to our jitter buffer

Avoid it growing forever and reset it when it gets full.

I also have some tests but I can't check them in until I fix the build.