fix foreign key api to only crud one at a time

allow n-n foreign key relationships
Merge branch 'master' of github.com:ckan/ckanext-datapackager