set language in session when changed

http://manage.dimagi.com/default.asp?78604
Merge pull request #1644 from dimagi/language-fix

set language in session when changed