Added option to close popover when escape key is pressed.

This is how `NSPopover` behaves when in transient mode and is now default for `INPopoverController` as well. Also added a flag that prevents escape from closing popover where needed.