Using promises for the deploy task. Fixes #25.