Revert "revproxy patches suggested by zenofx"

This reverts commit e396397c564995039f0ef02169250f10957f81cc.
proper revproxy patches