refactor handle_connection to run WSGI apps. Also the submit stuff works but I'm not making a separate commit because reasons.