fix critical issue (bin/autoreload not worked).
add test for command-line script.
change travis config to deploy to npm automatically.