Openflow 1.3

I found some bug in the current version when i test the restapi for device and i have fixed  some of them.

Solved
--------
1. Serializer for DPID
    - I modify the type of the dpid from long to DatapathId and send this pr.

Not yet
---------
1.
I use the topology (tree,3) in mininet to perform my experiment, after executing the "pingall" on the mininet prompt. I use the command "curl -s http://127.0.0.1:8080/wm/device/?ipv4=10.0.0.2" to fetch the device information and in the reply messages. It shows that the host2 has 7 attachmentPoint and i think it should be only one, or does the meaning of attachmentPoint has change in the Floowlight (OF1.3) ?
2.
I try to use the python to parse the json format from the controller, it shows a error message for the json format. I think that is caused by the vlan format "vlan":[0x0], the "0x0" can't be treat as a integer (hexadecimal), maybe we should use the string format or use the decimal ?
Do you have any idea?

Thanks.