Allow configuration of drawing routines.
Added object support.
Changed the way layers work so it's actually correct.