A connect middleware for creating a RESTful interface to a dbstream-compatible connection