Add an `auto` method which can auto resolve promise dependency.

Just like https://github.com/caolan/async#auto does.