Updated to work with LW 1.5

Changed from using onOutput handler with DOMDocument to using
onManagerQuery. Changed onOutputJSON to not modify JSON created from
the new LW 1.5 content search when linking a page.