Eliminated duplication in domain objects.

1. Got rid off export(), having duplication, in Name, Quantity,
SourceCode, etc.,.  Now we have just Attribute.export().
2. Renamed PartSchema.count() to size().