Added native DOM Promise support (closes #27).