Creating connection class and relocating all req/res pieces to it