Copy and paste old date helper.

This comes from another project. A lot of the functionality already exists,
and documentation is inline.
Initialize with NPM.
Make formatDate() return a value.
Add Underscore as a dependency.
Add documentation.