What does "bluegown" mean?

Bluegown: One of a class of paupers or pensioners, or licensed beggars, in Scotland, to whim annually on the king's birthday were distributed certain alms, including a blue gown; a beadsman.

Sources