Allow plugins to specify which refine flags they always require
As per !190 (comment 530054), it would be good if plugins could export a bitmask of the refine flags which they always require to run. Otherwise, all refine call sites have to be modified to set those refine flags, which is error prone: if one is missed out, that part of the UI will behave differently (or have some missing information) compared with everywhere else.