HR25 customizations and bugfixing

Hi,

I have couple of fixes and customizations for HR25 specific model, also for internal HR25 wiring. I would like to include these in the upstream repo. And I suppose yours it currently the master one :-).
I plan to add more changes, as time permits, but I don't think sending it as a huge patch would make it easier (even this one is bigger than I originally wanted), so I am sending it as it is now (compiles and works for HR25, can't test on HR20, but I don't expect any problems there either).

Take a look, please, and let me know if you need explanation or changes to any of the patches.

Regards

Tomas