Removed gson (using json-simple instead)
Separated out http functions (get, etc.)