Change auto_join config param to join_on_invite.
Fix handling CLI options.

But rewrite needed.
Add auto_join feature.