Add IPS policy selection, auto-flowbits, bug fixes