1.3.x css relative links optimization

This fixes https://dev.plone.org/ticket/12128 for 1.3.x versions and implements a selenium test to prove it.