Make npm test work and add mocha.opts

Conflicts:
	package.json
Add travis support