server: read finalBlockId from version database
test: fix cat-file; server: fix finalBlockId component
debug: reduced output and test fixes