more refactoring. The Rest client accepts now several languages, several
output formats, and several text types