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)