modified m and test.js to exit with exit codes.
travis config file
Updated readme to show build status.