Revert "Revert "import smarty 3.1.13 (LGPL)""

This reverts commit 9f326b31b786c1e9390cb8b5ad155576e7b5e87c.
smartyinit
tweaks to structure etc
tweaks to mockups
use new footer