Remove duplicate code (move LookupNamedQuery to Bugzilla::Search),
Add search tests "matched by named query" and "not matched by named query"
git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@101 6955db30-a419-402b-8a0d-67ecbb4d7f56
some style changes
port bug 17976 into Bugzilla 3.2
git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@70 6955db30-a419-402b-8a0d-67ecbb4d7f56