adding content header and length for json output
Merge pull request #64 from cgomboz/master

Add content type headers