A barebones Javascript Promises/A+ implementation.