Bugfix s3 upload

Bugfix and restructure some code so ckanclient can be used to upload data-files to s3.

This is a resubmit of #14, that only got closed and not merged.