Self-recognition signaling and ecological variation in the bacterial pathogen Proteus mirabilis