frontend views no escaping (Fix #809), print (Fix #810)

- search text is escaped in models where it is used in sql queries
  also escaping in views will cause problems
- in day view $document was undefined causing problems in print mode
Fix #811 Search plugin (sorting, searching, multicat, acl, section)
Minor fixes; escaping, quoting, grouping, ...
Merge pull request #812 from jemproject/development

Fixes from development branch for JEM 1.9.8 / 2.0 - search plugin, search filter, stability