Rewrite multi-part HTTP requests to use promises

Rewrote multi-part HTTP requests (e.g. course sections with course data) to use
the $q promises included in Angular.js.