Move proxy handler to h2o2

Closes #1957 
Do you have to be defensive against null here?