Yes, "toilet" became a euphemism for a water closet.
And when we say, "I have to go to the bathroom," it usually doesn't mean we have to take a bath.
"When Johnny Comes Marching Home" is an American Civil War song... not a song from the Revolutionary War, as depicted in the clip.