MDL-40040 events: Add blog events

Added blog_entries_viewed
Added blog_association_created
MDL-40040 events: Add unit tests for blog events
MDL-40040 Cleanup some blog methods and replace add_to_log

Cleaned up add_association()
cleaned up add_associations()
Replaced remaining add_to_log() in blogs with events