First version of ChiHandler and its tests
Bugs fixed while testing CgiHandler