Add mocha and travis

- add travis config file.
- use mocha as test framework.