In addition to the functions to start/stop the server, move the functions to push the jar and enable/disable the "adb reverse" tunnel.
To lighten screen.c, move start_server() and stop_server() to a separate file.