When there is an Action API error, it now displays the error message etc, not just the HTTP status.
added authorization header to _post_multipart. File upload does not work
without.
Merge pull request #17 from hbunke/file_upload

added authorization header to _post_multipart. File upload does not work without - thx to @hbunke.
fixed: missing server location in fileupload URL

introduced self.base_netloc (based on self.base_location) to have a reliable
URL of the CKAN instance, used in upload_handle() and _post_multipart().
Merge pull request #18 from hbunke/file_upload

fixed: missing server location in fileupload URL
Handle errors from upload_file
Use the url upload_file is returning
Return the url the storage system says it is.
Use all the key-values returned by storage
Convert _post_multipart to use urllib2

And as a sideeffect, be able to post to storage thats offsite, eg. s3
Keep data from trying to be converted by encodings

We downgrade everything to str, and we need to use .encode('ascii')
becase someone redefined the str-operator. This is so when underlaying
libraries tries to string-concatinate http, they will not try to handle
encodings.
Merge pull request #19 from glance-/bugfix-s3-upload

Bugfix s3 upload
Workaround for missing/wrong URL from pull request #19

urllib2 refused to open URL submitted by _post_multipart
Merge pull request #20 from hbunke/file_upload

Workaround for missing/wrong URL from pull request #19
Fix S3 uploading once again.

You can't assume that every url returned from ckan api is relative to
the api itself. Now we try to figure out what url is the right one, and
urljoin does that like a charm.

Second, we can't send any ckan-specific headers to S3. That can break S3
upload in more ways then i can imagine.

Fixes #19
Merge pull request #21 from glance-/bugfix-s3-upload-again

Fix S3 uploading once again.
[#15,config][s]: support for configuring api key from ckanclientrc - fixes #15.
[#9,cli][m]: crude but functional command line interface -- fixes #9.
changed default API URL from thedatahub.org to datahub.io
Merge pull request #24 from timrdf/master

Pull request: changed default API URL from thedatahub.org to datahub.io