Add CodeEditorGetPageLanguage hook for Gadget definition namespace

Change-Id: Ibda448d60ce164f5f4cafd540b5ed5dffa16a898