Filter grep by project

Let the user specify project(s) to filter the lines being scanned by
grep.
abstract the project filter logic a bit