Well, try writing firmware and sit back and enjoy the copious feedback lol 
Nice work.
My only advice is, a: you've already summised correctly - RH isn't designed to be an automated interface, and there is existing solutions to achieve what you desire - from Repetier themselves.
The Repetier project consists of THREE projects:
Repetier-Host - Designed to do what its supplied for - a GUI Interface for 1:1 printing with the ability to connect to multiple printers (but not per instance).
Repetier-Firmware - Designed to run the "Machine Code", i.e, its an equivalent to Marlin.
Repetier-Server - Designed to do what you are trying to bludgeon RH into doing.
Basically - you are trying to beat the wrong tool into submission and make it achieve a purpose it was never set out to achieve. They built other tools to do that in a proper enterprise-esque 3-layer model.
My only other comment is, Repetier is a specifically guided project with clear goals and corporate sponsorship that dictates its development efforts. If you do want to be actively involved, you should do that upstream as part of the project and not in isolation of a private fork
Anyway - Great work and great to see more contributing code around the place - but if you plan to continue particularly in relation to making it 'bot like' - you're going about it using the wrong tool for the wrong task
Repetier-Server is what you need to work with - that way you aren't trying 'upgrade' a butter knife to cut steak, you are using the steak knife in the first place 