Fix SAP modules, mainly to make a better use of send_request_cgi
Fix feedback provided by @nmonkee
Fix more feedback provided by @nmonkee: CMD vs COMMAND
Land #1786, request_cgi instead of request_raw

Also some other small changes to modules, such as sensible defaults for
options.