+ config. to set default mode for generic IM

Commit message

````
New configuration option allows user to select default mode
for generic IM. This is useful but it may be buggy if some IM
has its own configuration to do the samething.

FIXME: Add test cases
````