Move serializers and RingBuffer to lib.

Also bump minor version.