Take dialog type from first command line argument

There should be a way to specify the type of dialog. The message type is
the only type supported so far, but it is likely that there will be
other types as well.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>