start of persistent log work

Create a file format and create functions for serializing log entries,
along with some tests.