Rework of adding button to Studio edit dialog. Now general to any xmodule.