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

Should supersede https://github.com/superdesk/superdesk-server/pull/272
yes, I will remove.