added triggers

This PR is related to a change that is going to happen in Symfony: see symfony/symfony#7007.

Basically, it allows to trigger some closure when a service is set. The unit test gives you a good example on how you can use it (and how it is going to ne used to be able to integrate the Fragment sub-framework in Silex -- to propose native support for ESI and HIncludes in Silex).