simple api for logging/replaying events to/from a file (a la "event sourcing")