Implemented autosave

[TIM-162](https://edx-wiki.atlassian.net/browse/TIM-162)

* Implemented autosave
* Fixed a bug in which whitespace was added to saved responses on page reload.

@stephensanchez