[api] Update api http client to handle url quoting
[api] Update api http client to handle url quoting

* Also fixed a python 2.4 compat issue with HTTPError.getcode().

justinhayes/cm_api,cloudera/cm_api,cdapio/cm_api,justinhayes/cm_api,cloudera/cm_api,cdapio/cm_api,cloudera/cm_api,cdapio/cm_api,cdapio/cm_api,justinhayes/cm_api