Consolidate clean and canonical_url

Create a new filter called `canonicalize`, and replace every
instance of `clean` and `canonical_url` with it.

Fixes #984.
Merge pull request #988 from jacquerie/issue-984

Consolidate clean and canonical_url