hash now casts promises, and doesn't invoke then multiple times.
Merge pull request #174 from stefanpenner/cleanup_hash

Cleanup hash