Layer priority.

Implement layer priorities as well as calling clear/render on the global layer table as a whole.