Move debug module to `lib/debug.js`

Fix gh-138
Merge pull request #139 from flightjs/chore/relocate-debug-module

Move debug module to `lib/debug.js`