Updates event messages

Dirty flag now affects parent element
Messages have been moved into element_message
Added support for press and release states on an element