Database service

Moved db.js and db-legacy.js to /lib/services/
Added q as dependency in package.json
Log
Replaced deprecated functions and added single thread option

Use node server -1 or node server --single to launch single thread server
Fixed typo
New dependencies

mkdirp to create directory as copy dest
shiverview-boilerplate for testing
Bugfixes

Fixed several callback-not-called bug
Fixed route stack
Added console logs in verbose mode