Adding context to twig extension

This pull requests addes the ability to set the context in twig.

i mainly need groups in the extension but only that would be bad for people which want to use versions aswell.

if this solution is accepted i could create a patch for serializerBundels Templating aswell.