add beforeProxy option to handle request before send to proxy

https://github.com/spmjs/spm-server/issues/4
我内外网都是 302 ...