Updates async code to use `q` style promises instead of errbacks