Migrate all methods of frontend API class to Promises

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

gitlab-ce!11374 introduced wrapAjaxCall in api.js which wraps a (non-Promises/A+-compatible) $.ajax call into a Promise. For consistency, we should use that for all methods, especially since Promises are easier to test.

Edited by 🤖 GitLab Bot 🤖