Rewrote two functions in lib/api.js to use async/await syntax
Rewrote two functions in lib/api.js to use async/await syntax

This is just a slightly nicer way to deal with asynchronous code and
promises. No callbacks!

mitodl/micromasters,mitodl/micromasters,mitodl/micromasters,mitodl/micromasters