More checks if user object implements AdvancedUserInterface
Throw proper exception if user doesn't exist
Merge branch 'refs/heads/master' into resource_owner_password