Refactored Attribute, Table, ForeignKey and Row classes and decorators. refs #433