Separated footer html from layout templates.
Major layout refactor.