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

Should supersede https://github.com/superdesk/superdesk-server/pull/272
nowhere, some survivor from previous patch, will remove.