Added horrible code to store block colour in localStorage (if available).
Added warning for lack of localStorage.