Make the detail dialog close when the back button is clicked.

That is, the back button in the browser itself should close
the dialog.
Merge pull request #2 from JohnThomson/feature/BackClosesDetails

Make the detail dialog close when the back button is clicked.