Minimum viable functionality, with tests.

The lib/path.js file is borrowed with minor adjustments from
https://github.com/benjamn/recast/blob/0713d96af7/lib/path.js.
Add a .travis.yml file to allow Travis CI testing.