Added entity creation event.

Well that was more work than it needed to be. Events can now be called
that will create entities of the type specified, and entities can be
cloned and all that good stuff.