Fixed logout detection.

`curl-moodle` did only detect if a relogin was necessary when
fetching course/file lists.
Now it also detects this when downloading
files.
Only announce fetching when file is to be fetched.

`curl-moodle` announced the fetching of files which were already fetched
and therefore were not to be fetched.
Added explanation of '<alias>' in raw course list.