JSON encoding/decoding now uses mochijson2 instead of jsx
remove '{struct, _}' wrapper tuples from the decoded JSON objects

This change makes the return values of all methods consistent with
the original version.
use httpc instead of hackney for HTTP communication
add inets and mochiweb as dependencies