Support controllers out of bundles

Need this to support [bundleless application code][1]. Currently using [my own bundle][2] for that, but would be nice to have this in the bundle itself.

[1]: http://elnur.pro/symfony-without-bundles/
[2]: https://github.com/elnur/ElnurTemplateGuesserBundle
Are you sure I have to fix code that I haven't touched in this PR?