HUE-2131 [core] Modularize the sharing permission modal
HUE-2131 [core] Add sharing to pig, hive scripts