api: Implement 'redraw:{start,end}' events