XD-910 Add a processor for restful webservices

--Refactored the rest module to handle a payload.