api response should reference actual request domain
fix string interpolation
override doorkeerp client_credentials behavior and save resource_owner_id for 2-legged oauth client flow
api request for public /collections/:id/items throws nil object exception
api responses always use json
#588 add tests, routing, etc, for api responses always use json
use host instead of domain, prepend current protocol scheme
add upstream error handler
try and catch undef object exception
wrong branch. Revert "try and catch undef object exception"

This reverts commit c8e43a06e1a91f2c4eb76f1889b5eae7c0d1f5e7.
all /api/* paths that fail to match will return api 404 response
catch search where no items found
respond with 403 for CanCan exceptions to API requests
Merge pull request #617 from popuparchive/api-fixes-for-uploads

API responses are always JSON

Tara gives it the thumbs up.