Implement basic search for comment and location

For now only database search is supported, fulltext is not yet there.

Issue #614

Signed-off-by: Michal Čihař <michal@cihar.com>