Reorganize server code and set up REST routes
Attach id to sentence response