Make API more dom like.
Add a browser support.
Merge branch 'dom'

Conflicts:
	event.js