Pridane cakanie na beforeunload a otazka userovi, ci chce urcite odist

Possible fix for #19.

Note: won't work in older Operas.
Zmeneny event handler, aby nedoslo k jeho viacnasobnemu volaniu
Merge branch 'mrshu-patch-1'