refactoring: bin/* script source code written in nodejs moved into lib/bin/