Update middleware for connect 3.0

Connect 3.0 deprecated the bodyParser() middleware and replaced the functionality with json() and urlencoded(), causing a warning message to appear on startup. This PR updates the middleware stack.