Methods to dynamically allocate cork_ring_buffer

This patch includes two new methods, `cork_ring_buffer_new()` and
`cork_ring_buffer_free()`, which allocates a ring buffer on the
heap.