DB: Annotation link insert triggers for search

REINDEX event logs were only being created for annotation
and annotationlink UPDATE and DELETE actions meaning that
on new tag creation created, re-indexing of the annotated
object was not happening.

This commit adds DBInsertTriggerCheck which adds triggers
once on startup. If this fails (due to permissions, etc.)
only ERRORs will be printed to the log. An admin can then
try executing the included insert-triggers.sql file again
Remove unused import
Remove size limit for preview.
Limit preview to non big images.
Use Ice.Default.Host if available (Fix #12424)
Improve templates.xml explanation
Remove .jy from script names
Remove any extension from script name
Remove 'batch_search'. See #12347
Added Touch-punch.js for mobile touch events
Bigger left & right panel drag handles for mobile
Make main page fit viewport width
Tweaks to drag-handles, ovoid overlap of scrollbar
Support full-screen web-app on iOS
Fix drag handle in IE8
make FsFile constructor more permissive
use Deque in CheckedPath
use Deque in FleetingDirectory
add curly braces
remove whitespace