Add support for promises.
Make `promise` idlType attribute `false` by default instead of `undefined`.
Merge pull request #12 from tobie/add-promise-support

Add promise support