Output command number and refactor.

Command numbers are helpful because when deploying to multiple hosts,
capistrano's multi-threaded nature means commands may complete out of order.
The numbers help correlate completion messages with the command that was run.