Feature/internal repo

This is quickly turning into a mega PR request, and the work on the web panel is basically halted until this is merged, so I'm hoping this can get reviewed and merged ASAP.
That line was from OTT when I was naïvely implementing AI, and didn't understand how OTP actually handled all of this. I'll reword the comment in a second to explain it better.