Add meta to resource responses

Part of #4055