Preserve anchors and params in link cleanup

[Fixes https://www.pivotaltracker.com/story/show/61037964]
Merge pull request #1079 from alphagov/preserve-params-and-anchors-in-link-cleanup

Preserve anchors and params in link cleanup

[Fixes https://www.pivotaltracker.com/story/show/61037964]