Implementation of Promises/A and some other stuff (always-async, returning-a-promise).