As one of the first downvoters (although I don't think I was the first), but also as the person who initially commented to the OP (@Daniel) about this being a complicated question, I'll offer my point of view (unfortunately I have since deleted my initial comment, as the OP had addressed it - can mods get that back I wonder, it might be helpful on this thread).
Firstly I didn't mean the problem was complicated. In fact, it may turn out to be very simple at the end of the day. I meant the actual post was complicated, difficult to read, hard to parse and make sense of. The type of post that a lot of "veteran users" are likely to look at, and move on.
When I first saw this, it looked like the classic "wall of text" type of question. I read through it and my first impression was that a lot of things were going on, and if one could cut away at all the distractions, the root cause of the problem may be easier to spot. (as suggested by comment)
This is my experience in coding and tracking down "weird" bugs.
My intent for commenting was to try help OP improve (from my perspective) his chance of getting quality help. Did I use the right words, in hindsight it is obvious I did not.
As for the downvote, it was given because, in my view, it matched enough of the usual reasons, listed nicely in:
Primarily, when I first read it, I struggled to get useful info out of it nice and simply.