HUE-2510 [pig] Ensure that CSRF cookie is loaded in the editor

If the CSRF cookie is not present, then AJAX calls are not accepted,
which caused Hue to return a 403 statue code.

The fix ensures that the cookie is set when the Pig editor page is loaded.