Main thread now looks for tasks given by the CLI. Currently supports camera capture command (capture filename.jpg)