Start refactoring RingBuffer in preparations for the event detection
system.

* Basically, start turning RingBuffer2D<T>::ChunkItem into an iterator,
  with container generation tracking (it doesn't just point to a
  position in the buffer, but to also to a specific time).