refactoring out common code into common package.. created HttpClient4ClosureBase<F,S>