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

Possible fix for #19.

Note: won't work in older Operas.