Added some basic middleware and wrapped a connect application.