Refined resource-control editor tpl

Added token, holder attr to the privilege control button;
Put ref, file and logic per field item render tpl into a helper;