Support Silex 2

This is a work in progress. So far, the web profiler works for everything except forms.