Fix logger according to new API of express.

Also, fixed dependency versions to avoid such issues in future.