Store preferred locale in a cookie.

Fixes #9.
#current_language => #current_locale
Fix a bug