Add php conditions for grunt-tasks, add index.php template, update grunt tasks