Autosave color palette state.

Generates color palette in local storage if there is one.

R=jackhou@chromium.org

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