I18n Media and elasticsearch migration. Fix #598. Fix #596