Merge pull request #5 from liangji101/develop

change to scanner to function
replace global to fix Syntax error
fix travisCI error
remote unused log
restore back lib/session/sessionfactory.js
restore back .travis.yml
restore back .travis.yml
Merge branch 'develop' of github.com:wangjungithub/arrow into develop
update function test