stud: use ringbuffer from node.js

Alternative approach to #6 . Adaptation of node.js tls ring buffer, should be quite fast at might buffer a bit more than fixed-sized ring.

In pair with `backend=mmap` should give pretty low RSS.

/cc @papertigers @mranney @georgekola