feat(preferences) - create a way to register per resource preferences and fetch them

Should supersede https://github.com/superdesk/superdesk-server/pull/272
Ok, I thought you want this per resource, I will change.