Improve logging
Fix tests

All basic tests pass for value, tree, revision and tag stores.

Now need to test the higher level API.