Implement simple syncstore protocol

/cc @ckarlof @psawaya 

Here's a first run at implementing the simple v0 storage protocol.  It's mostly functional, apart from the X-Last-Modified-Version header.  There's a bit of attempted cleverness in the storage backend which probably wont work out once the data grows to a reasonable size, but it'll do the job for now.

@zaach r?