CRM-12330 - Caching bugs in api setting code

Various fixes around domain keys in cache strings, removing ids, extra test, don't fetch default if item not set with civicrm-api setting.get