Refactor Search to Doctrine 2

Cherry-pick 1017c9e8ca0c214de1f327bab1bdf1690a13e032
Correct field name.
Correct DQL - even though Doctrine still doesnt accept it.
Fix DQL statements
Merge pull request #691 from zikula/d2_search

Refactor Search to Doctrine 2