fix content length
SWC-1828: respond with page that sends a postMessage that contains the upload result
Merge pull request #7 from jay-hodgson/release-1

SWC-1828: fix CORS issue.  servlet now responds with a html page that sends a postMessage on load