Code cleanup and loading screen.

Cleaned up unused code. Removed redundant doInBackground(used
inheritance instead). Added a ProgressDialog(loading screen) to the
AsyncTask.