add beforeProxy option to handle request before send to proxy

https://github.com/spmjs/spm-server/issues/4
在外网的 linode 服务器上试也是 302 跳淘宝。