A ring buffer for managing recent changes.

I still have more work to do to get this integrated with a safe API to
get stuff in and out, but this is a start for cbugg: bug-235