rest_firewall: improve REST response
rest_firewall: improve REST response

Improvement of the REST response for basing more on JSON.

example of get rules.

before:
{
  "switch_id: 0000000000000001": [
    {
      "vlan_id: 634": {
        "rule_id: 1": {
          "actions": "ALLOW",
          "dl_vlan": 634,
          "dl_type": "ARP",
          "priority": 1
        },
        "rule_id: 2": {
          "actions": "ALLOW",
          "dl_src": "12:34:56:78:9a:bc",
          "dl_vlan": 634,
          "nw_proto": "ICMP",
          "dl_type": "IPv4",
          "priority": 1
        }
      }
    }
  ]
}

after:
[
  {
    "switch_id": "0000000000000001",
    "access_control_list": [
      {
        "vlan_id": 634,
        "rules": [
          {
            "actions": "ALLOW",
            "rule_id": 1,
            "dl_vlan": 634,
            "dl_type": "ARP",
            "priority": 1
          },
          {
            "dl_src": "12:34:56:78:9a:bc",
            "actions": "ALLOW",
            "rule_id": 2,
            "dl_vlan": 634,
            "nw_proto": "ICMP",
            "dl_type": "IPv4",
            "priority": 1
          }
        ]
      }
    ]
  }
]

Signed-off-by: WATANABE Fumitaka <6c314859a5392f5f0c2f5e010c7240be8063009a@nttcom.co.jp>
Signed-off-by: FUJITA Tomonori <93dac1fe9c4b2a3957982200319981492ad4976e@lab.ntt.co.jp>

ttsubo/ryu,OpenState-SDN/ryu,castroflavio/ryu,takahashiminoru/ryu,diogommartins/ryu,mikhaelharswanto/ryu,shinpeimuraoka/ryu,alanquillin/ryu,zyq001/ryu,lagopus/ryu-lagopus-ext,elahejalalpour/ELRyu,OpenState-SDN/ryu,zangree/ryu,ttsubo/ryu,openvapour/ryu,jkoelker/ryu,haniehrajabi/ryu,yamt/ryu,sivaramakrishnansr/ryu,darjus-amzn/ryu,muzixing/ryu,gareging/SDN_Framework,ntts-clo/ryu,Zouyiran/ryu,ttsubo/ryu,lsqtongxin/ryu,OpenState-SDN/ryu,castroflavio/ryu,zangree/ryu,citrix-openstack/build-ryu,alyosha1879/ryu,habibiefaried/ryu,fujita/ryu,zyq001/ryu,alanquillin/ryu,Tesi-Luca-Davide/ryu,darjus-amzn/ryu,gopchandani/ryu,Tejas-Subramanya/RYU_MEC,openvapour/ryu,lsqtongxin/ryu,zangree/ryu,citrix-openstack/build-ryu,citrix-openstack-build/ryu,hisaharu/ryu,StephenKing/ryu,takahashiminoru/ryu,openvapour/ryu,ynkjm/ryu,Zouyiran/ryu,Tejas-Subramanya/RYU_MEC,diogommartins/ryu,mikhaelharswanto/ryu,evanscottgray/ryu,Tesi-Luca-Davide/ryu,habibiefaried/ryu,alanquillin/ryu,sivaramakrishnansr/ryu,diogommartins/ryu,habibiefaried/ryu,ynkjm/ryu,osrg/ryu,muzixing/ryu,alanquillin/ryu,John-Lin/ryu,ysywh/ryu,shinpeimuraoka/ryu,gopchandani/ryu,alyosha1879/ryu,evanscottgray/ryu,Tesi-Luca-Davide/ryu,haniehrajabi/ryu,TakeshiTseng/ryu,gopchandani/ryu,gopchandani/ryu,umkcdcrg01/ryu_openflow,yamt/ryu,diogommartins/ryu,alyosha1879/ryu,gareging/SDN_Framework,ysywh/ryu,umkcdcrg01/ryu_openflow,ntts-clo/ryu,lsqtongxin/ryu,unifycore/ryu,darjus-amzn/ryu,gareging/SDN_Framework,evanscottgray/ryu,openvapour/ryu,alyosha1879/ryu,yamt/ryu,ysywh/ryu,alanquillin/ryu,hisaharu/ryu,John-Lin/ryu,StephenKing/ryu,hisaharu/ryu,ntts-clo/mld-ryu,StephenKing/ryu,TakeshiTseng/ryu,lzppp/mylearning,pichuang/ryu,darjus-amzn/ryu,o3project/ryu-oe,lagopus/ryu-lagopus-ext,unifycore/ryu,ntts-clo/mld-ryu,jalilm/ryu,lsqtongxin/ryu,fkakuma/ryu,gareging/SDN_Framework,StephenKing/summerschool-2015-ryu,pichuang/ryu,lzppp/mylearning,ysywh/ryu,osrg/ryu,fujita/ryu,jalilm/ryu,torufuru/OFPatchPanel,elahejalalpour/ELRyu,fujita/ryu,StephenKing/ryu,zyq001/ryu,zyq001/ryu,castroflavio/ryu,elahejalalpour/ELRyu,takahashiminoru/ryu,shinpeimuraoka/ryu,yamada-h/ryu,torufuru/oolhackathon,John-Lin/ryu,StephenKing/summerschool-2015-ryu,habibiefaried/ryu,jazzmes/ryu,TakeshiTseng/ryu,pichuang/ryu,citrix-openstack-build/ryu,TakeshiTseng/ryu,shinpeimuraoka/ryu,umkcdcrg01/ryu_openflow,elahejalalpour/ELRyu,shinpeimuraoka/ryu,elahejalalpour/ELRyu,fkakuma/ryu,ynkjm/ryu,lagopus/ryu-lagopus-ext,jazzmes/ryu,iwaseyusuke/ryu,muzixing/ryu,jalilm/ryu,diogommartins/ryu,Zouyiran/ryu,lsqtongxin/ryu,hisaharu/ryu,jkoelker/ryu,gareging/SDN_Framework,openvapour/ryu,sivaramakrishnansr/ryu,TakeshiTseng/ryu,Zouyiran/ryu,osrg/ryu,lagopus/ryu-lagopus-ext,Tejas-Subramanya/RYU_MEC,John-Lin/ryu,torufuru/oolhackathon,sivaramakrishnansr/ryu,umkcdcrg01/ryu_openflow,gopchandani/ryu,jalilm/ryu,osrg/ryu,John-Lin/ryu,pichuang/ryu,fkakuma/ryu,iwaseyusuke/ryu,o3project/ryu-oe,zyq001/ryu,umkcdcrg01/ryu_openflow,takahashiminoru/ryu,habibiefaried/ryu,lzppp/mylearning,zangree/ryu,lagopus/ryu-lagopus-ext,osrg/ryu,haniehrajabi/ryu,Tejas-Subramanya/RYU_MEC,ysywh/ryu,yamada-h/ryu,yamt/ryu,jazzmes/ryu,sivaramakrishnansr/ryu,iwaseyusuke/ryu,muzixing/ryu,muzixing/ryu,ttsubo/ryu,StephenKing/summerschool-2015-ryu,iwaseyusuke/ryu,Tesi-Luca-Davide/ryu,StephenKing/summerschool-2015-ryu,OpenState-SDN/ryu,StephenKing/ryu,ynkjm/ryu,Tesi-Luca-Davide/ryu,fkakuma/ryu,jalilm/ryu,fujita/ryu,lzppp/mylearning,hisaharu/ryu,torufuru/OFPatchPanel,iwaseyusuke/ryu,jkoelker/ryu,haniehrajabi/ryu,fkakuma/ryu,OpenState-SDN/ryu,Zouyiran/ryu,ynkjm/ryu,lzppp/mylearning,yamt/ryu,torufuru/oolhackathon,ttsubo/ryu,fujita/ryu,haniehrajabi/ryu,takahashiminoru/ryu,pichuang/ryu,zangree/ryu,Tejas-Subramanya/RYU_MEC,StephenKing/summerschool-2015-ryu,darjus-amzn/ryu