Align URL patterns between REST and WEB UI

The following URLs from the Web UI can be prefixed with /rest/
to access the REST API:

/list/{X}/
/list/{X}/thread/{year}/{month}/{day}
/list/{X}/thread/{Y}
/list/{X}/message/{Y}
/list/{X}/message/{Y}/attachment/{Z}/
/list/{X}/search/{F}/{K}