API docs for counterblockd

This is a set of API doc for counterblockd.