Use npm prepublish to compile files.
Also compile files before testing.
Update contribution part in readme.
Merge branch 'npm-prepublish'