Use the new middleware API

This fixes the deprecation warning caused by
using 'connect(middleware)' instead of
'app.use(middleware)'
Merge pull request #66 from markdalgleish/new-middleware-api

Use the new middleware API