Eval free template

Remove the eval in the template system.
This is done by replacing the template placeholders with the corresponding php.
Also remove the deprecated theme.