Try several cookie names one by one

It was observed that on some course pages requests of 'session' cookie fail.
Consider using 'CAUTH' cookie instead in these cases.
Checkbox size presetting fix & multiline resource flags

Set checkbox size based on general icon size (icon's offsetHeight can be zero sometimes).
Arranging resource checkboxes vertically addresses the long names problem.