Move the fragment code to its own file and extent AsyncTask for fetching weather data.