Update calcdeps to support import as a module.

Allow importing calcdeps as a Node module for use by other scripts.  The module
API follows that of the command line exactly.

Progress on #7.
Merge pull request #192 from nicksay/calcdeps-module

Update calcdeps to support import as a module.