Add connect/express middleware and tests.