Allow auto saving document
With this change it will be possible to auto save the docs. There are two ways in which the doc will get autosaved:
- When the view looses focus => auto save
- When the timer is timed out
It is possible to choose only one of the above config or both.