Added response in XML format.
Updated controllers to return mixed value (objects or scalars).