Add target attribute to events.
Add tests for target on events.
Merge pull request #202 from arlolra/target

Add target attribute to events.