Move proxy handler to h2o2

Closes #1957