[NaCl] Add more input event handlers

Also, lay ground work to support dynamic view sizing by
separating GL initialization from GL re-sizing.

Applications no longer need to set the frame size explicitly,
as it defaults to the size of the plugin html element.

BUG=None

Review URL: https://codereview.chromium.org/12223072