begin to write a command line client
deliver the current tree JSON on /head