New promise implementation

Switched the (partially broken) promise implementation to [this one](https://github.com/nilclass/promising). This way our promises comply with the [Promises/A+](http://promises-aplus.github.com/promises-spec/) spec.