[NODEJS-1767] Make type dectection way better

Code format
[NODEJS-1767] Make type dectection way better

- Make type dectection way better
- Apply JSHint into practice
[NODEJS-1767] Make type dectection way better

Fix global grunt
[NODEJS-1767] Make type dectection way better

Fix env problem
[NODEJS-1767] Make type dectection way better

Update .travis.yml
[NODEJS-1767] Make type dectection way better

Update .travis.yml
[NODEJS-1767] Make type dectection way better

Fix an issue that some entry point cannot run well under GET mode
Merge pull request #24 from realpaul/NODEJS-1767_TypeDetection

[NODEJS-1767] Make type dectection way better