Introduce PathSpec for StatusOptions.

Tests to come, awaiting review first.
I think the indentation is off here :wink: