Fix html writer handling binary attributes returning None.
Avoid putting very long action parameters in the log file.
Make gateway actions parse correctly the application/octet-stream
content-type.