[hotfix] publish was not async-rewritten

the publish.js was still using URLProxy.proxyURL in a synchronous fashion, so it was never sending the right proxy-rewritten data (in fact, it was sending none). This rewrite moves the actual publish into the proxy callback, so that it happens at the right time.