Added response back into rest classes, added as_json method to work correctly when serializing arrays of resources