Fix multipart deprecation

Implements the new style of middleware for connect: https://github.com/senchalabs/connect/wiki/Connect-3.0