clean up event model

- fix defined relationships so they are properly backref
- fix trait_type __repr__ function to reference correct variable

Change-Id: Id606025ca3e91c6e9b7da597f8cc3181caf4d4b7
Closes-Bug: #1333399
Merge "clean up event model"