Separated events, etc. into modules.

Created separate module and tests for events.
Created separate module and tests for data.
Created separate module for animate.