Fixed issue #303 partially

1. Closing the window now deselects the feature.
2. In ExtJS5 Popup stays in front (alwaysOnTop: true). This is not
   implemented in ExtJS4.