Allow rendering cache to cache on-demand skin extensions

Fixes XWIKI-3544

Recommit of pull request 77, all credits to original author (kmiintranet a.k.a. David Delbecq)
Successfully tested on 5.3 stable