Fix session usage, and hook set_language on before_dispatch