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.
Might as well make valid_extensions a set here instead of a list, since we're just using it to check membership later.