ipaddr: implement new standard encoding interfaces such as encoding.BinaryMarshaler, BinaryUnmarshaler

Also removes old (and incomplete) BGP NLRI encoder and decoder.