Allow maximal heading depth do be specified

Adds the -d argument taking a number specifying the maximal heading
depth to be included in the table of contents.

This change pulls the commander Node.js module as a dependency.