Add some helper methods to send raw json objects so we can write applications that do not use our library.
Merge conflicting changes.