Redirect to translated url after setting language

Implemented redirection to proper, translated URL after language was changed. This fixes not changing language preference at all when using i18n_patterns and redirecting to 404 page when translated urls are used (and no i18n_patterns used, because if used, language won't change at all).