RESTemplates.load async, modules['commandLine'] refactor, commandLine uses template

Since the templates.html resource loads asynchronously but modules might try to call `RESTemplates.load()` from `module.go()`, `RESTemplates.load = function(templateName, callback)` is now defined before modules `go()` and calls `callback` after templates are available.

Additionally,  `modules['commandLine']` is refactored out of `modules['keyboardNavigation']` and refactored a template out of `modules['commandLine'].attachCommandLineWidget`.