Reworked basic layer system to be much more lightweight.
Cleaned up more layer code.