Ensure invocation of -…WillClose methods when login window is closed

Specifically -popoverWillClose seems to be left out when user hits Cancel button on web view
Reintroduce Cocoa-based Cancel button for login dialog

Had to do this because Facebook-based Cancel button is unreliable: when susequent page is loaded (e.g. login failed) Cancel button's onClick javascript window.close() has no effect