plugin: add API_URL.
api: replacing {{ API_URL }} with an environ data.
plugin: get api host from variable.
plugin: using httplib instead urllib2.