[client] truncate args save file with open()
[server] when log_msg() is called fflush() output to stderr (when stderr is used)
minor typo and format fixes
[server] ensure 'Rule added' log messages are generated when create_rule() is called