Convert calcdeps script to synchronous execution.

Switching to a synchronous execution model doubles the speed of the script.
It now averages ~100ms locally instead of ~200ms.

Progress on #7.
Merge pull request #189 from nicksay/calcdeps-sync

Convert calcdeps script to synchronous execution.