General code fixes

Fixed issue #1: dismissing the ProgressDialogFragment will now cancel the
AsyncTask.