Rewrite dependencies.resolve to use Bluebird
Use Bluebird instead of Q