Added saving behavior with cookies. Works for only editor content.
Basic implementation for code generation.