Close popups by pressing escape or clicking outside the popup-box.

I was getting slightly annoyed by having to close the popup by clicking the "Close"-link, so here's two other ways to close them:
- By pressing the Escape-button
- By clicking outside the popup-box