I'm going to pass on watching the video, but instead here are some tips on the setup scripts. If you're just interested in how the wifi is configured, take a look at /usr/bin/wifisetup for the guts of the process. If you're interested in all of the backend behind the web first-time configuration, examine the content under /www/OnionOS/static/js.