Cleanup MemorizingDialogFragment code a bit (rotation is still broken...)