Purges key select window options on dialog close

Adds change_identity event capture for #139

Fixes #111 given that the change_identity event is triggered in
Roundcube's app.js. At current time it needs to be added manually.
Merge branch 'master' of https://github.com/qnrq/rc_openpgpjs