dpi: implement Flowdict()

When using Flowdict().from_json(), dp-id(integer-key) would be
changed to strings. in this way; {1: ''} --> {'1': ''}

So I have implemented get_dpids() and get_items(). These can be
converted the key to integer when the value is returned.