Change cancel command to carry buildId.

This makes it safer that the right build is cancelled.
As a result --cancel option now has an argument (that needs to be searched in log).
Add integration test for command line invokation.