Add a simple class for implementing history-like functionality (forward and back buttons).

It's probably too simple, but enough for now. ;) I'll extend it as needed.