Created an intent service to remove all the networking stuff from the main activity.