Refactoring symfony 2 demo application to run as servlet