added debug, option for choosing, and logging switch
Merge branch 'master' of https://github.com/0xdata/h2o