Squashed 'floo/common/' changes from 011bb89..c725686

c725686 Add FlooPatch class to utils. Make it take the current text instead of a view.
8d70b28 Fix import of DMP.
b07d5d9 Move msg.py into common stuff.

git-subtree-dir: floo/common
git-subtree-split: c725686fd88abd8f128947a78454003890c6d7f7
Merge commit '9a68a7db1d9720862b3868b6bbec354e66fbd83a' into use_common_py
Use utils.FlooPatch