prefer localStorage over cookies

There is no need to send remembered colors to server and even IE8 supports localStorage & JSON.

I implemented it so that it falls back to cookies if there is no support for localStorage or if no colores are found in the localStorage (-> it upgrades from cookies if the old version was already used).