Make Promises/A+ spec pass. Named all functions.