Merge pull request #2 from jay-hodgson/release-1

reviewed by Xa
Merge pull request #3 from jay-hodgson/release-1

treat upload destination as the folder path, then append the actual file...
Merge pull request #4 from jay-hodgson/release-1

set content length too
Merge pull request #5 from jay-hodgson/release-1

removing the chunked transfer encoding did not resolve.  try closing the...
Merge pull request #6 from jay-hodgson/release-1

fix content length, and let servlet container flush and close the output...
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
Merge pull request #8 from jay-hodgson/release-1

set content type to html
remove http basic auth, rely on input fields username and password sent with file upload