[refactor] Add possibility to search fir several synonyms in frontend and migrating to Rails 4.2