Add support for Silex 2.x

This adds support for Silex 2.x, I'm pretty sure this can't get merged anytime soon since there is no stable Silex 2.x yet but it can be useful for some people.
Also, no backwards compatibility with older Silex versions..