Created generic quantum.utils.parse_mappings function that detects
duplicate key or value strings, and changed openvswitch and
linuxbridge agents to use this to parse their mappings from physical
networks to bridges or interfaces. Fixes bug 1067669.
Also fixed some typos in comments.
Change-Id: I342eaeeb6ff4c6e25d57d631f250faac082011b8