Add working directory status to CLI status

This is displayed in the watched repository table in the CLI status.
In the process I have also extracted the code for checking if the working
directory is dirty into its own method, and test it.