bug fix and add logger in error handler.
按照res.locals调整一些变量
Merge pull request #79 from airballoon/bingo

bug fix and add logger in error handler.