Separate listeners for custom and DOM components.

Added separated event-listeners into core and into browser as Map. 

Custom class for HtmlAttrs and EvnetListeners will be created later, I didn't have enogh time to do it today.

Again, begining commit of this functionality is ad3f9ee.