blueswitch: make util functions return ofperr on conversion errors.
blueswitch: some skeleton code for rule_insert using the conversion util functions.