Strip newlines off k=v pairs in command/shell argument parsing

Fixes ansible/ansible#9272
Simplify command module option parsing
Add comment to command options dict
Get warn option same as other args
Fix regex string format