addrconv: replace bin<->text converters for mac addresses
addrconv: replace bin<->text converters for ipv6
addrconv: use bytes instead of int to represent ipv4 addresses

change ipv4 representation from int to bytes in many places.
replace homegrown bin<->text routines with addrconv for ipv4.
rest_router: follow packet lib api change

packet lib now uses bytes, not int/long, to represent ipv4 addresses.
oxm_fields: generate OFPXMT_OFB_ and OXM_OF_ from a single source

also, implement text <-> binary convertions for field values.  this will
be used for later ofproto api refinement.  (and probably stringify stuff)
oxm_fields: accept [value, mask] as well as (value, mask)

this will be used for OFPMatch from_jsondict implementation.
as json has no notion of tuples, we will use a list instead.
of12: new OFPMatch composer api

a new api to compose matches.  it looks like:

    match = OFPMatch(in_port=1,
                     eth_type=0x86dd,
                     ipv6_src=('2001:db8:bd05:1d2:288a:1fc0:1:10ee',
                               'ffff:ffff:ffff:ffff::'),
                     ipv6_dst = '2001:db8:bd05:1d2:288a:1fc0:1:10ee')

the old match.set_foo and match.append_field methods are kept for now
but will be removed later.
of12: new match field parser

add a new match field parser which fills OFPMatch attributes used
by the new api.

the old parser which fills match.fields is kept for now but will be
removed later.
of12: new OFPMatch field query api

an example:

    if 'ipv6_src' in match:
        print match['ipv6_src']
of12: add OFPMatch.iteritems for convenience
of12: add OFPMatch.get for convenience
of12: OFPMatch from_json/to_json for new api

this breaks from_json/to_json for old api
of12: OFPMatch api compat

make old query api work on OFPMatch instances created with from_jsondict.
of12 OFPMatchField: make this safe to serialize multiple times

this will be used by OFPMatch old api compat code.
of12: make OFPMatch.to_jsondict work on instances composed with old api
of12: OFPMatch more old api compat

enough to pass test_parser_v12.
of12 OFPMatch: remove now unused code
test_parser: update of12 expected results
of13: new OFPMatch composer api

a new api to compose matches.  it looks like:

    match = OFPMatch(in_port=1,
                     eth_type=0x86dd,
                     ipv6_src=('2001:db8:bd05:1d2:288a:1fc0:1:10ee',
                               'ffff:ffff:ffff:ffff::'),
                     ipv6_dst = '2001:db8:bd05:1d2:288a:1fc0:1:10ee')

the old match.set_foo and match.append_field methods are kept for now
but will be removed later.
of13: new match field parser

add a new match field parser which fills OFPMatch attributes used
by the new api.

the old parser which fills match.fields is kept for now but will be
removed later.