starts to makes the index.php a templated one
adds some logic to the index.php for FPC