Merge branch 'pr723'
fixes #207

Adds parsing for command-line arguments/flags
fixes unreported bug in styles
split message fix
Merge branch 'pr725'
Merge branch 'pr732'
Merge branch 'pr730'
Fix use after free of groupchat invites

Fixes #728, fixes #706, fixes #394
minor tweaks to autoaway, one new debug message