Support closure compiler advanced optomisations

Use the same implicit global export as q.js for the non-module case so that
closure can do renaming on qajax when included in a compile.

The existing code gets renamed in a way that ends up breaking things.
Merge branch 'support-closure-compiler-advanced-optomizations'