Code refactring - remove all unused stuff and migration to symfony 2.2.x