Travis CI Integration

Clean up race condition in test causing it to fail locally, add npm scripts,
and travis yml for travis integration