Change deprecated functions and remove unused imports

I changed the deprecated translation function setFallbackLocale() and the debug Exception- and Error-Handler.
Therefore i added symfony/debug to composer.json.

I also removed unused imports and fixed some classnames in docblock comments.