Inject the application into the commands to avoid usage of global
Merge pull request #95 from GromNaN/app-aware-command

Inject the application into the commands to avoid usage of global