The server code for the Timeline application