Added flash messaging middleware, updated base layout