Move response to core

This pull request is in preparation for a future one that will remove the client-specific response structure and use this one in its place.