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

Should supersede https://github.com/superdesk/superdesk-server/pull/272
where do you use this?