Implement cached Document.Links
Added tests for Document's Link cache
Removed comment as issue #1847 is now fixed.
Merge pull request #3088 from brunoabinader/document-links-cache

Implement Document.links cache; r=Ms2ger