Framework (printHttpException): display previous exception code.

The previous exception code may help to find the origin of the problem
if syslog cannot be read. Also the code is searchable on the Internet.
Syslog (message): send log messages also to stderr.
Translator (translate): always cast given $key argument to String. Refs #2844
Translator (translate). Fixed docblock. Refs #2844