What is the origin of the word lounge?

The word is of uncertain origin, but some reference is made to Scotland in the 1500's. Also a French word -s'allonger- meaning to lie at full length has some weak connection