Refactor some of the warning code for footer links.

Rather than assuming that the links are using certain messages, it
now retrieves the messages that are set for the skin template by
the SkinMobile class.

This makes the handling of the footer links more flexible and less
fragile.

Change-Id: I41e636911613ac1cade752618b219d7a3011ccdb