Introduce short versions of some department names, for course directory filters

In order to make these short versions possible, it made sense to break the
openlab_get_department_list() function to work on a proper key-value setup.

See #1011