Fix issues reported in bug #1310804 comments

Remove invalid call to Client.open();
Make sure that all uuids are treated as strings;
Internally implement port uuid key as an object so that the key doesn't
depend on whether the caller is using dashes or not in the uuid string.