minimal changes to POST payload processing to be able to handle Angular.js posts