Converts index.html to twig template - allowing PHP sessions in Angular application