Cleanup/getting rid of done in promise

Refactoring of 'done'/'donep' flags in Promise struct. Flags are still here, but cleaned up considerably.