(bug 8421) Expose current action in JavaScript globals (as 'wgAction')