Optimizing Event/Trait insertion in SqlAlchemy

1) Adding a cache for UniqueNames so that the driver doesn't
have to go out to the database every time it is creating a trait
or event.

2) Bulk insertion of an Event's Traits.