added the managed tag capability for flowmods

added the managed tag capability for flowmods and and fixing problems
that the unit tests discovered, most of which were with the known state
configs