Use request class variable() and is_set(), and use $user->lang() calls

Fixes #2