Support handler behind proxy.

I tested this bit of code with the 0.0.7 gem and it worked.  This code is slightly different from 0.0.7 however so it must be a bit newer.  I modified my code to match this newer version, but it is untested.  As long as I didn't make any stupid typos I think it should work.

I left the original code in but commented out for now.