Add dist task, npm scripts and travis yml