Save the editor and language state in local storage which persists over browser sessions. Fixes #55
Refactor code, no need for extra function
Update examples when restoring the state without overwriting the editor state.
Fix callback added to wrong call.
Merge pull request #92 from uwescience/domoritz-save-state

Save the editor and language state