Thank's for your investigations.
I didn't have a closer look at your changes because they are hard to
find. So here are a few rules for you when posting to mailinglist or
* don't send HTML mails! Use plain text instead.
* Send patches rather then complete files (see my other post  just a
few days ago)
* take care to respect the used coding style (we don't use tabs)
Regarding your commit question: just attach a patch to the issue tracker
and eventually someone will have a closer look and commit it.