improve support for OFPP_LOCAL

Reviewer: @poolakiran

One major change and a few bugfixes. This reduces the amount of special case
code needed for OFPP_LOCAL and enables packet-out to use it as the in_port.