Extract common functionality to xblock-utils

Looks suspicious, but I assume it's an expected way of adding custom data to an event, right? If it's so, fine by me :)