making POST mode optional for publish, adding mode option to xdr and making GET default
merging node.js publish POST fix