NSX: Sync do not pass around model object
NSX: Sync do not pass around model object

The NSX sync backend previously passed around a sqlalchemy model object
around which was nice because we did not need to query the database an
additional time to update the status of an object.

Unfortunately, this was add done within a db transaction which included a
call to NSX which could cause deadlock this needed to be removed. Now a
dict is passed around instead and proper transaction handling
is used when updating objects.

Change-Id: Id50abd8f2143b127d1ca81c360c1c6d400e1d74f
Closes-bug: #1281772

barnsnake351/neutron,Metaswitch/calico-neutron,silenci/neutron,sajuptpm/neutron-ipam,aristanetworks/neutron,vivekanand1101/neutron,gkotton/neutron,barnsnake351/neutron,cloudbase/neutron,redhat-openstack/neutron,CiscoSystems/neutron,gopal1cloud/neutron,klmitch/neutron,dhanunjaya/neutron,javaos74/neutron,gopal1cloud/neutron,paninetworks/neutron,cisco-openstack/neutron,virtualopensystems/neutron,jerryz1982/neutron,NeCTAR-RC/neutron,pnavarro/neutron,JianyuWang/neutron,cernops/neutron,JioCloud/neutron,openstack/neutron,CiscoSystems/neutron,vveerava/Openstack,wenhuizhang/neutron,leeseulstack/openstack,mahak/neutron,paninetworks/neutron,SamYaple/neutron,alexandrucoman/vbox-neutron-agent,magic0704/neutron,eonpatapon/neutron,suneeth51/neutron,cisco-openstack/neutron,Stavitsky/neutron,mandeepdhami/neutron,cernops/neutron,wolverineav/neutron,shahbazn/neutron,sebrandon1/neutron,JianyuWang/neutron,dhanunjaya/neutron,vbannai/neutron,watonyweng/neutron,leeseuljeong/leeseulstack_neutron,igor-toga/local-snat,CiscoSystems/neutron,mahak/neutron,leeseuljeong/leeseulstack_neutron,blueboxgroup/neutron,jumpojoy/neutron,swdream/neutron,silenci/neutron,watonyweng/neutron,NeCTAR-RC/neutron,infobloxopen/neutron,yamahata/tacker,vivekanand1101/neutron,huntxu/neutron,jacknjzhou/neutron,Stavitsky/neutron,shahbazn/neutron,apporc/neutron,cloudbase/neutron-virtualbox,projectcalico/calico-neutron,JioCloud/neutron,vveerava/Openstack,igor-toga/local-snat,gkotton/neutron,sajuptpm/neutron-ipam,vbannai/neutron,wolverineav/neutron,suneeth51/neutron,adelina-t/neutron,rdo-management/neutron,skyddv/neutron,MaximNevrov/neutron,antonioUnina/neutron,mattt416/neutron,klmitch/neutron,yamahata/neutron,asgard-lab/neutron,jerryz1982/neutron,magic0704/neutron,virtualopensystems/neutron,yuewko/neutron,projectcalico/calico-neutron,sasukeh/neutron,mahak/neutron,takeshineshiro/neutron,cloudbase/neutron-virtualbox,aristanetworks/neutron,adelina-t/neutron,redhat-openstack/neutron,neoareslinux/neutron,mandeepdhami/neutron,eonpatapon/neutron,Metaswitch/calico-neutron,alexandrucoman/vbox-neutron-agent,wenhuizhang/neutron,yuewko/neutron,sebrandon1/neutron,mmnelemane/neutron,MaximNevrov/neutron,mattt416/neutron,eayunstack/neutron,vijayendrabvs/hap,leeseuljeong/leeseulstack_neutron,noironetworks/neutron,dims/neutron,SmartInfrastructures/neutron,bgxavier/neutron,jacknjzhou/neutron,javaos74/neutron,jumpojoy/neutron,yamahata/tacker,antonioUnina/neutron,vijayendrabvs/hap,virtualopensystems/neutron,yamahata/neutron,waltBB/neutron_read,sajuptpm/neutron-ipam,leeseulstack/openstack,vijayendrabvs/hap,asgard-lab/neutron,miyakz1192/neutron,swdream/neutron,SamYaple/neutron,yamahata/tacker,chitr/neutron,eayunstack/neutron,glove747/liberty-neutron,vveerava/Openstack,glove747/liberty-neutron,miyakz1192/neutron,bgxavier/neutron,takeshineshiro/neutron,waltBB/neutron_read,SmartInfrastructures/neutron,blueboxgroup/neutron,gkotton/neutron,skyddv/neutron,rdo-management/neutron,huntxu/neutron,chitr/neutron,bigswitch/neutron,bigswitch/neutron,mmnelemane/neutron,pnavarro/neutron,yanheven/neutron,neoareslinux/neutron,dims/neutron,openstack/neutron,yamahata/neutron,sasukeh/neutron,infobloxopen/neutron,cloudbase/neutron,yanheven/neutron,vbannai/neutron,apporc/neutron,blueboxgroup/neutron,leeseulstack/openstack,openstack/neutron,noironetworks/neutron