Added initial JSON parsing and message sending support.