Update travis config so tests work with node 0.6 and newer version of npm.