Fixes and improvements to API server
Added logging statement to KV pubsub