Remove 'doStop()'s dependency on global variables.
Remove 'doLogs()'s dependency on global variables.
Remove 'doInfo()'s dependency on global variables.
Remove 'doAttach()'s dependency on global variables.
Remove 'doStart()'s dependency on global variables.
Clean up general variable declarations + (very) minor fixes.
Update translation templates.