Moved extended resource wrap and unwrap stuff to RequestDispatcher.
Made patch unwrap and wrap stuff occur inside RequestDispatcher too.