Fixed one test failure on 0.10
Fixed one test failure on 0.10
Refactored tail code into common.js and added a bit more error handling
Merge pull request #370 from flatiron/ll-dev

Fixed tail code that was causing test failures in 0.10