fix(common): fixes event bubbling for relations

Also moves relation scope logic to a separate class.

closes #55