refactor selection code, add SELECTION_SKIP_KIND, add support for arch/kind filtering
add --type and --arch filter support