Biped leg controls weren't showing up on quite the right layers.

Also some misc code shuffling.