Condense mixin classes into AdvancedDraw.js. Add undo manager and ops. General cleanup.