HTML5 Events API.

Implements a C-based events library for various HTML5 APIs.

This adds event-based and polling-based API for the following HTML5 APIs: