Replaced JSONSimple with Gson, replaced java.net with Apache HTTP, cleaned up a lot.