separate the construction of the WAI application from running a webserver