Move /list to its own file in handlers.