`.then`; Travis-CI Support

I followed @lbeschastny's suggestion from #44 and it seems to have worked like a charm.

I also ensured that travis-ci works properly now. ("test" script just needed to be added to `package.json`)