[FIX] website: define languages variable outside of an 'if' as it is used below in the same template, leading to a crash due to the variable not always being defined.
[FIX] website:  ir_http: when rerouting url containing default language -> url without language, the ? was missing, leading to wrong urls.
Merge pull request #170 from odoo-dev/master-fix-languages-thingy-tde

[FIX] website: fixed languages errors
- ir_http: added a missing ? when a route using the default language was re-rerouted to remove the language part of the path, leading to a wrong url
- website layout: fixed use of a languages variable not always defined depending on the working conditions
Subtree merged in odoo/master