Fix 1: - make output mode selection work again (it doesn't want "mapi-" in   front of the mode) - for the sake of consistency, make behaviour equal to SQL component:   only remove the trailing newline on X commands if given.
Fix 1:
- make output mode selection work again (it doesn't want "mapi-" in
  front of the mode)
- for the sake of consistency, make behaviour equal to SQL component:
  only remove the trailing newline on X commands if given.

zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb