Support CKAN repositories

Started this a few days ago, and now finishing up on the train. Needed for theodi/shared#140