Simplify and improve event re-attaching
Detect events from any $, jQuery and lp.jQuery namespaces
jQuery object fixes; reorganise script; remove debug bits
Syntax and Analytics detection changes from main branch