Add general join/filter feature file scripts

This isn't quite done, as @desilinguist is helpfully adding unit tests to the branch, but it's easier to see the build status when there's a PR.

Anyway, this closes #79 and removes the remaining MegaM-specific scripts.