Added escape/back support for popups

Previously if you had a popup on the screen and hit the back button on
android it would kill/minimize the app, now it should simply remove the
popup.