Allow user to redefine FlashListener Class

The FlashListener Class should be extendible for users. To extend it, the definition of the class is moved to a parameter, with the FOSUserBundle Class as a default value.