Add debug endpoint, and ping.