Allow filtering endpoints for which to generate clients.

Adds a callback that generators can implement to filter the APIs for which to generate clients/models.

Also removes some dead code that looks like it was the beginnings of a plan to do the same thing.