`dev` is simply the name of the server being used with the task `grunt connect:dev`. The other items in the `middleware` array are all functions that either are of the form `function (req, res, next)` like `checkForDownload` or return that like `mountFolder(connect, 'something')`.
credits
=======
Thisisaslightlymodifiedversionof[connect-livereload](https://github.com/intesso/connect-livereload) all the credits go to the author.