tree block: implement new block context

Implements [BlockContext](https://github.com/sonata-project/SonataBlockBundle/pull/55)