Template file support

This is a minor feature, now we can set diferrents templates from config.js . HTML code of the template has been remove from the index.php