Added Response classes to convert JSON and XML responses to PHP arrays.