add events to draw background and foreground

Adds event `'draw-background'` after filling background colour, but before emitting draw to entities, and `'draw-foreground'` after emitting draw to entities.