Fix IE8 localstorage error.
Update to Redactor 8.2.2
Update custom functions to work in IE8.