A simple utility function which starts and stops an Express server and invokes some callbacks which drive the request-response workflow