"Yellowleg" is likely to be a reference to the yellow strip down the trousers of Union cavalry troops.
Turk talks about creating a "Republic of Freedonia". While most people are aware that this is the name of a fictional country in the film Duck Soup, 'Freedonian' was a term used in the USA after the American Revolution until it was replaced by 'American'.