move --format=ids handling to individual commands

I think `--format=ids` was a bad idea (not scalable), so instead of making it work for `wp plugin list` and `wp theme list`, I'm going to limit it to the commands that already supported it.

Fixes #1057