[HY-757] Make middleware configurable

### Ultimate Problem
Currently there is no way to add custom middleware.

### Solution
Check for a `middleware` function on the settings object obtained from wf-grunt's options. If present, call it and pass in the connect and options parameter and prepend the returned middleware list to the common middleware already present in wf-grunt.