Introduce BaseDialogFragment class.
Prevent showing single dialog multiple times. Fixes #81.