Querying filters with filter_id rather than filter_name

In the CLI, we were using filter_name to perform actions on filters which was
causing problems since filter names can contain slashes and other characters
that are problematic for URLs.