rename vars in SkinTemplate::outputPage()

The $tmp, $l names are not very meaningfull. This patch rename some
variables and avoid calling methods by adding some more variables.
Overall this cleanup the code to be more readable.

Change-Id: I4d2018c6cf3f651647bcb9e235b8322943bd5728
Merge "rename vars in SkinTemplate::outputPage()"