transfer api changes from branch to trunk, re #4378, re #4376, re #4381, re #4379, re #4374

git-svn-id: svn://develop.studip.de/studip/trunk@30390 c5b85792-5220-0410-ad23-ed5b6b8ad999