Automate npm publish on tagged releases

Added travis ci configuration to build and publish to npm on tagged
releases.