Update for API changes
Update for API changes

Extract metadata from its map.
Also return flow rules in a format that dobby_oflib:publish_new_flow
understands.

FlowForwarding/weave,ivanos/weave_core_lib