Added automatically saving by timeout feature

* Added Cancel button to saveIfNeeded dialog
* Fix bug with closing window event accepting
* Update russian translation