That's pretty slick! Never occurred to me to try wiring it up like that.
I just installed a separate switch for folding it. (Actually don't mind it since sometimes I like to just have them up and not on)
As far as the wiring of the power fold goes (with a seperate switch), it's actually pretty easy. All you need is one of these:
Polarity Reversing Rocker Switch
Then just wire like this.
(wasn't sure on what kind of draw the powerfold actually has, but I wired a 20 amp inline blade fuse just to be safe)
Hardest part is deciding where to locate the switch. I wanted it out of the way, yet easily reachable while in the drivers seat. I ended up putting it in the center of the panel just below the headlight control. Cant see it unless you look for it and when you do see it, it looks close to factory.
Only suggestion I have for Jimmy on future builds... Weld a wire channel onto the inside front right of the rack. Would eliminate the need for so many zipties and give it a much cleaner look.