HUE-1273 [pig] Confirmation popup when leaving unsaved script

Added confirmation when trying to create a new script or load an existing one when the user has unsaved changes