move search action from project and user to a search controller

so that we have a global search.
However, the view is not still nice and the search box does not link to
this controller.