Let's implement Smarty..

..and get rid of the ugly file_get_contents stuff