made sonata user bundle compatible with FOSUserBundle 2.0*

I have added fixes to make SonataUserBundle work with FOSUserBundle 2.0*