Made Middleware compatible with Connect for use in Grunt builds with grunt-contrib-connect