Added a ring buffer log target to store the last N log messages.

All messages use the same amount of space, prioritizing simplicity.