Start to rewrite hocr, for now only cmd=get request are handled.