Reorganizing request and response handlers to take more responsibility from the resource implementations