Store ContentId against the LinkedResource

ContentId is not being set for the LinkedResource so once rendered, the cid value in the HTML content can't be found as it isn't named.
Merge pull request #2 from andydoyle/patch-1

Store ContentId against the LinkedResource