Renames cleanPaste plugin, moves more methods to common and util
Roughly moves anchorPreview to a plugin