Move the link-tracking into the cms to remove the SiteTree dependency.

Depends on 8996b67c13a773c3339f45d91bf2378a39e5178a in the cms module.
Merge pull request #3376 from mateusz/link-tracking

Move the link-tracking into the cms to remove the SiteTree dependency.