Fixed language detection and redirects. Closes #35