Use the latest version of npm for travis

Trying the suggestion from http://stackoverflow.com/questions/26474640/why-travisci-builds-fails-during-npm-install-due-to-file-lock to fix #1070.