fix some context errors
added .key method to support batches
logs entries support since/until
replication and resolving added

public interface shaping up
still quirky though
protobuf stuff
remove unused json encoder
use protobuf for replication

also a bit of clean up
moved out the stack
safety lock
more docs