Added XML to array converting support. Added method setResponseType
which allows to define response class easily