[WIP] Extract-o-matic: Extract event handlers to page JS

The main functionality here moves event handler attachment from inline attributes to the page JavaScript that Lift 3 now supports. The reason for this is so that, out of the box, Lift will be compatible with very restrictive [Content Security Policy](http://en.wikipedia.org/wiki/Content_Security_Policy) settings even when using built-in Lift features.

To do this, we add a `lift.onEvent` function that has both jQuery and vanilla implementations. There are also a couple of fixes to existing JS functionality here.

Still two things missing that I know of:
 - [ ] Extract `javascript://` `href`s from `a` elements into event handlers (these should `preventDefault()`).
 - [ ] Extract `javascript://` `action`s from `form` elements into event handlers (these should also `preventDefault()`).

Looking for some early thoughts/feedback from folks.