Complete refactor of the OVS/openflow agent