NOJIRA Added helper for querying external services

We now do https requests over proxies as well. I couldn't figure out
how to make that work with stream contexts and file_get_contents so we
do those queries with curl.

GeoNames premium subscribers can use their service over https which is
nice.