Standardized "content-type" header key formatting
Default to application/octet-stream content-type if not set
Handle all content-types except text/xml identically
Recompiled core.js from modified source file
Merge pull request #2 from trollandtoad/master

Merge with upstream