Clean and reorganise list generator code
Move cmd processing to task stylesheet
Use URI in Reference path #1544
Change gen-list to process absolute paths

Instead of storing file references as relative paths, keep everything
absolute until serialization.
Clean error messages
Clean preprocessing
Use URI instead of File in generating source listings #1762