Feature/log events - includes migration

This has logging implemented for atomic changes.
It includes migration to set the datatype of revisions.content to TEXT.