Add basic key-value store
Fix appendlog so that first offset is 0

We were including the file header