Undo/Redo feature.

Saves dataURL of snapshots of each state on mouse up. Max stack size is
10 snapshots. Undo = Pop, Redo = Unpop, On mouse up = comparing to Top
and Push.

R=calamity@chromium.org, jackhou@chromium.org

Review URL: https://codereview.appspot.com/59520043