Move HTTP API for comments to its own file