fix some bugs

ingree -> ingres
stats information can display on webui

need to do:
fix flow management 's modification and deletion bugs (fields not total
match)
recover the flow table when switch connection fails unexpectedly