Use Promise/A API.

promised-io has been choosen as a Promise implementation.
This is not simpler that the code I've posted before but it is a somehow
standard API, so it's better to use it.