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

Should supersede https://github.com/superdesk/superdesk-server/pull/272
this seems implicit for bool type