Allow configurable API base

Starting to use the Ruby API for interaction with local CKAN so added ability to configure API base.