Rebase stylesheet urls in the template

We were only rebasing images urls.
With this change we no longer need to rebase url's when preloading or 
adding the stylesheet to the DocumentResources.
Merge pull request #1448 from aadsm/url-normalizing

Rebase stylesheet urls in the template