add library to handle json encoding. fixes some prior issues with json formatting.
Merge pull request #31 from kaazing/http-response-fix

Fix JSON encoding issues