Move link rel=stylesheet fetching to layout task

Fixes #3346.
Merge pull request #3352 from mbrubeck/link-style

 Move link rel=stylesheet fetching to layout task. r=jdm