Added JSON handling to the send command.  sendGet and sendPost have been combined.