Core: Added support for generic messages via data-msg attribute

Closes gh-747