Feature/rails3 improve member search

Implements https://www.openproject.org/issues/1507