Added basic abstracted events.
Add internal.check-attached-blocks option to check attached blocks.

This does not check the other way yet (i.e. check if other blocks depend
on the block in question).