This is related to my recent work on the "layers" permalink parameter.