Code for handling various client calls such as feeding, visiting, and old search API on gateway server.