[Symfony2] Optimized front controller

The front controller now generates the Symfony2's cached URL
matcher if it does not exist, and will initialize the request
with the cached URL matcher's generated attribute, so the Symfony2
application won't call the URL matcher again.

Also added some comments to explain the different parts.