Update 'lib/oauth2.js'

add logout link to response locals.
Add 'index.js'

- update package.json to load ‘index.js’,
- update ‘test.js’
Merge branch 'develop'