Refactor internal state to remove excess closures.

A HUGE speed improvement.
Cleanup code.
Test `.race` and `.all`.
Cleanup code.
Fix two errors with testing
Fix description of test
Inline a few functions
Have a PendingPromise use a flat array.
Pass undefined to #resolve if not a function
Merge pull request #3 from jridgewell/refactor

Refactor