Add Data.clean function.
Improve the Patches object.
Fix platform/protocol.