Fixed the gateway, so it processes xml and html correctly

Also fixed it so it passes back the correct response codes
Corrected the odd xpath and comment in the definitions
Corrected the deleting of the validation errors
Added the SetManager to the gateway