add json methods

Found some URLs that output json for contacts and messages. No screen scraping required :)

pretty much the same as the `xml_action_xml` methods, this adds a `messages_json` and `contacts_json` method.