See how the example middleware modules use a closure to hold configuration info.