Improve debug log (proxy.js)
Add test for proxy mode
Now static mode and proxy mode cannot be set simultaneously