api now defaults to using apache HttpClient. This can be disabled and it will then use HttpURLConnection

fixed bug where sometimes Address.fromJson() would cause an exception