Externalize run function so it can be used with mounted
apps (or any wsgi app really).