Generalize VLAN name validity checking

- add a function in the library to check for vlan
  name validity,
- call this function when a vlan name is added/modified
  in the web admin interface,
- remove specific code and apply the same validity check in the
  topo list-vlan script