Add rel='canonical' support

Fixes #1341