Enable mongoose debug if MONGOOSE_DEBUG is set

If MONGOOSE_DEBUG is set in the process' environment then we enable
mongoose's debug flag, which logs the queries being performed to STDOUT,
which can be very useful when debugging performance issues etc.