fixed rendering of the tree for Symfony2.2, minor cleanups
Merge pull request #87 from sonata-project/symfony_2_2_compat

fixed rendering of the tree for Symfony2.2, minor cleanups