Write configuration on startup

Write configuration on startup to have a default configuration if no
gtkui is available.
Added parameter to remove torrent with data