Moving background JSON process methods to NSObject category from UIViewController category.