Add Mongoose, move authentication middleware to correct place and more...