MDL-41101 mod_assign: replaced 'view submission' add_to_log call with an event

Also performed the following -

1) Renamed event_test.php to events_test.php to match the rest of core.
2) Moved the event tests from locallib_test.php to events_test.php.
3) Used newly created base event class with existing events.