Yes, this is the correct way. You really don't need to (and shouldn't) add anything directly to Kernel.hub unless you are expanding the architecture. Instead put your "globals" in the hub definition like you are doing above. You can then access these variables from any module like so:
Kernel.module.define('MyModule', {
init: function() {
if (this.hub.gpsStarted) {
// Do something
}
}
});
If you need to access these variables from other hubs or from Kernel itself you would do this:
Kernel.extend(Kernel, {
myExtension: {
foo: function() {