Make it Symfony 2.2 friendly, use json for transfer to client
Merge pull request #27 from nenadalm/master

Make it Symfony 2.2 friendly, use json for transfer to client