Keep track of and cycle through capped history (chat messages, REPL command-lines etc)