Changes for Symfony 2.4 and REST CSRF Protection