Introduce PathSpec for StatusOptions.

Tests to come, awaiting review first.