Add simple path filtering.

May need a more flexible one later.
Separate testing from main functionality.