Autoupdater

Improvement of  https://github.com/qreal/qreal/pull/1074