move all REST responses except HEAD to JSON

Done. I’m just going to return the ContainsResponse as serialized JSON for now.