Refactor links and url code in skin (code cleanup)

Shift anything to do with links or urls to prepareTemplateLinks

In process discover unused properties that we can throw away \o/

Change-Id: I6535f83ccbb3fcf1a484d676e0e59c3e3b18cad8